ClipPlane
Index
Properties
readonlycolor
The color applied to the intersection where geometry is clipped by this plane.
enabled
Whether this clip plane is enabled and actively clipping geometry.
fadeSize
Controls how much the clip color is faded (smudged) over the clipped area. Higher values increase the fade distance.
ignoreDepthWrite
If true, disables depth writing for geometry clipped by this plane.
readonlyindex
The name/index of this clip plane (e.g. 'clipPlane', 'clipPlane2', ...).
readonlynormal
The normal vector of the clip plane. Should always be normalized.
readonlyplane
The underlying Babylon.js Plane object representing this clip plane.
readonlyposition
The position (origin) of the clip plane in 3D space.
publicstaticreadonlyallClipPlanes
Set of all valid clip plane names supported by the system.
Methods
publicstaticcreate
Creates a set of observable ClipPlane instances from a configuration object.
Parameters
o: ClipPlanes<{ color: Color3 }>
An object mapping clip plane names to their initial color.
Returns ClipPlanes<PropertyChangeObservable<ClipPlane>>
A map of clip plane names to observable ClipPlane instances.
publicstaticentries
Iterates over all valid entries in a ClipPlanes object.
Type parameters
- T
Parameters
o: ClipPlanes<T>
The ClipPlanes object to iterate.
Returns IterableIterator<[clipPlane | clipPlane2 | clipPlane3 | clipPlane4 | clipPlane5 | clipPlane6, T], any, any>
publicstaticentry
Looks up a ClipPlane by name.
Parameters
name: clipPlane | clipPlane2 | clipPlane3 | clipPlane4 | clipPlane5 | clipPlane6
The name of the clip plane.
Returns ClipPlane
The ClipPlane instance.
Represents a single clipping plane in a 3D scene.
A ClipPlane defines a plane by position and normal, and can be enabled or disabled. When enabled, geometry intersecting the plane is clipped and the intersection is colored using the plane's color. The
fadeSizeproperty controls how much the color is smudged (faded) over the clipped area.ClipPlane instances are used to clip IFC geometry in a scene.