Skip to main content

plane()

Creates a plane with transform options.

Returns: Plane

Signatures

plane(plane: PlaneLike, options: PlaneRenderableOptions): Plane

Creates a plane with transform options.

ParameterTypeDescription
planePlaneLikeThe standard plane or normal vector
optionsPlaneRenderableOptionsTransform options (offset, flip, sticky, etc.)

plane(plane: PlaneLike, offset: number): Plane

Creates a plane with an offset.

ParameterTypeDescription
planePlaneLikeThe standard plane or normal vector
offsetnumberThe offset distance

plane(selection: SceneObject): Plane

Creates a plane from a face selection.

ParameterTypeDescription
selectionSceneObjectThe selected face to create a plane from

plane(selection: SceneObject, options: PlaneRenderableOptions): Plane

Creates a plane from a face selection with transform options.

ParameterTypeDescription
selectionSceneObjectThe selected face to create a plane from
optionsPlaneRenderableOptionsTransform options (offset, flip, sticky, etc.)

plane(selection: SceneObject, offset: number): Plane

Creates a plane from a face selection with an offset.

ParameterTypeDescription
selectionSceneObjectThe selected face to create a plane from
offsetnumberThe offset distance

plane(plane: Plane, options: PlaneRenderableOptions): Plane

Transforms an existing plane with options.

ParameterTypeDescription
planePlaneThe existing plane to transform
optionsPlaneRenderableOptionsTransform options (offset, flip, sticky, etc.)

plane(p1: PlaneLike, p2: PlaneLike, options?: PlaneRenderableOptions): Plane

Creates a plane midway between two standard planes or normal vectors.

ParameterTypeDescription
p1PlaneLikeThe first standard plane or normal vector
p2PlaneLikeThe second standard plane or normal vector
optionsPlaneRenderableOptionsTransform options (offset, flip, sticky, etc.) (optional)

plane(p1: Plane, p2: Plane, options?: PlaneRenderableOptions): Plane

Creates a plane midway between two existing Plane objects.

ParameterTypeDescription
p1PlaneThe first Plane object
p2PlaneThe second Plane object
optionsPlaneRenderableOptionsTransform options (offset, flip, sticky, etc.) (optional)
note

All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.