Description
The ClipPlaneEnabled
field is a boolean value that determines whether the clipping plane defined in ClipPlane
is used for the SceneObject
. When set to true
, the clipping plane will be applied, affecting how the object is rendered. This field is marked as obsolete, indicating that it may be removed in future versions and should be used with caution.
Usage
To enable or disable the clipping plane for a SceneObject
, set the ClipPlaneEnabled
field to true
or false
respectively. Ensure that the ClipPlane
is properly defined if enabling this feature.
Example
// Example of enabling the clipping plane for a SceneObject
SceneObject mySceneObject = new SceneObject();
mySceneObject.ClipPlaneEnabled = true; // Enable the clipping plane
// Define the clipping plane
mySceneObject.ClipPlane = new Plane(Vector3.Up, 0); // Example plane definition