SimplePlane
Each of the clipping planes created by the clipper.
Implements
Properties
components
components:
Components
The components instance to which this plane belongs.
normal
readonlynormal:Vector3
The normal vector of the clipping plane.
onDisposed
readonlyonDisposed:Event<unknown>
Implementation of
onDraggingEnded
readonlyonDraggingEnded:Event<unknown>
Event that fires when the user stops dragging a clipping plane.
onDraggingStarted
readonlyonDraggingStarted:Event<unknown>
Event that fires when the user starts dragging a clipping plane.
origin
readonlyorigin:Vector3
The origin point of the clipping plane.
three
readonlythree:Plane
The THREE.js Plane object representing the clipping plane.
type
type:
string="default"
A custom string to identify what this plane is used for.
world
world:
World
The world instance to which this plane belongs.
Accessors
enabled
getenabled():boolean
Getter for the enabled state of the clipping plane.
setenabled(state):void
Setter for the enabled state of the clipping plane. Updates the clipping plane state in the renderer and throws an error if no renderer is found.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | boolean | The new enabled state. |
Returns
boolean
The current enabled state.
helper
gethelper():Object3D<Object3DEventMap>
Getter for the helper object of the clipping plane. The helper object is a THREE.Object3D that contains the clipping plane mesh and other related objects. It is used for positioning, rotating, and scaling the clipping plane in the 3D scene.
Returns
Object3D<Object3DEventMap>
The helper object of the clipping plane.
meshes
getmeshes():Mesh<BufferGeometry<NormalBufferAttributes>,Material|Material[],Object3DEventMap>[]
The meshes used for raycasting
Returns
Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>[]
planeMaterial
getplaneMaterial():Material|Material[]
The material of the clipping plane representation.
setplaneMaterial(material):void
The material of the clipping plane representation.
Parameters
| Parameter | Type |
|---|---|
material | Material | Material[] |
Returns
Material | Material[]
size
getsize():number
The size of the clipping plane representation.
setsize(size):void
Sets the size of the clipping plane representation.
Parameters
| Parameter | Type |
|---|---|
size | number |
Returns
number
visible
getvisible():boolean
setvisible(state):void
Parameters
| Parameter | Type |
|---|---|
state | boolean |
Returns
boolean
Methods
dispose()
dispose():
void
Returns
void
Implementation of
setFromNormalAndCoplanarPoint()
setFromNormalAndCoplanarPoint(
normal,point):void
Sets the clipping plane's normal and origin from the given normal and point. This method resets the clipping plane's state, updates the normal and origin, and positions the helper object accordingly.
Parameters
| Parameter | Type | Description |
|---|---|---|
normal | Vector3 | The new normal vector for the clipping plane. |
point | Vector3 | The new origin point for the clipping plane. |
Returns
void
update()
update():
void
Returns
void