Skip to main content

SimplePlane

Each of the clipping planes created by the clipper.

Implements​

Properties​

components​

components: Components

The components instance to which this plane belongs.


normal​

readonly normal: Vector3

The normal vector of the clipping plane.


onDisposed​

readonly onDisposed: Event<unknown>

Disposable.onDisposed

Implementation of​

Disposable . onDisposed


onDraggingEnded​

readonly onDraggingEnded: Event<unknown>

Event that fires when the user stops dragging a clipping plane.


onDraggingStarted​

readonly onDraggingStarted: Event<unknown>

Event that fires when the user starts dragging a clipping plane.


origin​

readonly origin: Vector3

The origin point of the clipping plane.


three​

readonly three: 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​

controls​

get controls(): TransformControls

Getter for the transform controls of the clipping plane. The controls allow interactive manipulation (translation, rotation, etc.) of the clipping plane.

Returns​

TransformControls

The transform controls of the clipping plane.


enabled​

get enabled(): boolean

Getter for the enabled state of the clipping plane.

set enabled(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​

ParameterTypeDescription
statebooleanThe new enabled state.

Returns​

boolean

The current enabled state.


helper​

get helper(): 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​

get meshes(): Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>[]

The meshes used for raycasting

Returns​

Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>[]


planeMaterial​

get planeMaterial(): Material<MaterialEventMap> | Material<MaterialEventMap>[]

The material of the clipping plane representation.

set planeMaterial(material): void

The material of the clipping plane representation.

Parameters​

ParameterType
materialMaterial<MaterialEventMap> | Material<MaterialEventMap>[]

Returns​

Material<MaterialEventMap> | Material<MaterialEventMap>[]


size​

get size(): number

The size of the clipping plane representation.

set size(size): void

Sets the size of the clipping plane representation.

Parameters​

ParameterType
sizenumber

Returns​

number


visible​

get visible(): boolean

Hideable.visible

set visible(state): void

Hideable.visible

Parameters​

ParameterType
stateboolean

Returns​

boolean

Methods​

dispose()​

dispose(): void

Disposable.dispose

Returns​

void

Implementation of​

Disposable . dispose


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​

ParameterTypeDescription
normalVector3The new normal vector for the clipping plane.
pointVector3The new origin point for the clipping plane.

Returns​

void


update()​

update(): void

Updateable.update

Returns​

void