plane()
Creates a plane with transform options.
Returns: Plane
Signatures
plane(plane: PlaneLike, options: PlaneRenderableOptions): Plane
Creates a plane with transform options.
| Parameter | Type | Description |
|---|---|---|
plane | PlaneLike | The standard plane or normal vector |
options | PlaneRenderableOptions | Transform options (offset, flip, sticky, etc.) |
plane(plane: PlaneLike, offset: number): Plane
Creates a plane with an offset.
| Parameter | Type | Description |
|---|---|---|
plane | PlaneLike | The standard plane or normal vector |
offset | number | The offset distance |
plane(selection: SceneObject): Plane
Creates a plane from a face selection.
| Parameter | Type | Description |
|---|---|---|
selection | SceneObject | The selected face to create a plane from |
plane(selection: SceneObject, options: PlaneRenderableOptions): Plane
Creates a plane from a face selection with transform options.
| Parameter | Type | Description |
|---|---|---|
selection | SceneObject | The selected face to create a plane from |
options | PlaneRenderableOptions | Transform options (offset, flip, sticky, etc.) |
plane(selection: SceneObject, offset: number): Plane
Creates a plane from a face selection with an offset.
| Parameter | Type | Description |
|---|---|---|
selection | SceneObject | The selected face to create a plane from |
offset | number | The offset distance |
plane(plane: Plane, options: PlaneRenderableOptions): Plane
Transforms an existing plane with options.
| Parameter | Type | Description |
|---|---|---|
plane | Plane | The existing plane to transform |
options | PlaneRenderableOptions | Transform options (offset, flip, sticky, etc.) |
plane(p1: PlaneLike, p2: PlaneLike, options?: PlaneRenderableOptions): Plane
Creates a plane midway between two standard planes or normal vectors.
| Parameter | Type | Description |
|---|---|---|
p1 | PlaneLike | The first standard plane or normal vector |
p2 | PlaneLike | The second standard plane or normal vector |
options | PlaneRenderableOptions | Transform options (offset, flip, sticky, etc.) (optional) |
plane(p1: Plane, p2: Plane, options?: PlaneRenderableOptions): Plane
Creates a plane midway between two existing Plane objects.
| Parameter | Type | Description |
|---|---|---|
p1 | Plane | The first Plane object |
p2 | Plane | The second Plane object |
options | PlaneRenderableOptions | Transform 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.