An object which represents clipping plane.
Clipping in Verge3D is quite complex as you require several objects to render it correctly:
Stencil and cross-section objects are marked by the special .isAuxClippingMesh = true
flag.
Creates a new ClippingPlaneObject.
See the base Object3D class for common properties.
Read-only flag to check if a given object is of type ClippingPlaneObject.
Set to 'ClippingPlaneObject', this can be used to find all clipping planes in a scene.
See the base Object3D class for common methods.
objToClip — object to clip.
Checks if the given mesh object can be clipped.
objToClip — object to clip.
renderOrder — (optional) rendering order assigned on the auxiliary stencil objects.
Assigns clipping parameters and auxiliary stencil meshes on the mesh object.
planes — array with all clipping planes located on the scene.
renderOrder — (optional) rendering order assigned on the auxiliary cross-section plane object.
Creates and assigns auxiliary cross-section plane on the ClippingPlaneObject.
objToClip — (optional) object to clip.
Cleanup auxiliary meshes from objToClip
or the clipping plane itself if objToClip=null
.
For more info on how to obtain the source code of this module see this page.