 |
SlicerSliceSceneNode(SceneNode, Transform, SceneNode, SceneNode) Method |
Slices the specified SceneNode with the specified Plane and creates two new SceneNode objects:
one SceneNode that is in front of the plane (in the direction of plane's Normal vector) and one SceneNode that is in the back of the plane.
If the specified SceneNode is fully in front (or in back) of the Plane, then the same instance of SceneNode is returned (the other returned SceneNode is null).
If the specified SceneNode intersects the Plane, it is sliced and new SceneNode objects are created from it.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic void SliceSceneNode(
SceneNode sceneNode,
Transform? parentTransform,
out SceneNode?? frontSceneNode,
out SceneNode?? backSceneNode
)
Parameters
- sceneNode SceneNode
- SceneNode to slice (can be a GroupNode or ModelNode)
- parentTransform Transform
- additional transformation that transforms the groupNode
- frontSceneNode SceneNode
- out parameter with the front SceneNode (null if sceneNode is fully in the back of the plane)
- backSceneNode SceneNode
- out parameter with the back SceneNode (null if sceneNode is fully in the front of the plane)
See Also