 |
SlicerSliceModelNode(ModelNode, Transform, MeshModelNode, MeshModelNode) Method |
Slices the specified ModelNode with the specified Plane and creates two new ModelNode objects:
one ModelNode that is in front of the plane (in the direction of plane's Normal vector) and one ModelNode that is in the back of the plane.
If the specified ModelNode is fully in front (or in back) of the Plane, then the same instance of ModelNode is returned (the other returned ModelNode is null).
If the specified ModelNode intersects the Plane, it is sliced and new ModelNode objects are created from it.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void SliceModelNode(
ModelNode modelNode,
Transform? parentTransform,
out MeshModelNode?? frontModelNode,
out MeshModelNode?? backModelNode
)
Parameters
- modelNode ModelNode
- ModelNode to slice
- parentTransform Transform
- additional transformation that transforms the ModelNode
- frontModelNode MeshModelNode
- out parameter with the front ModelNode (null if ModelNode is fully in the back of the plane)
- backModelNode MeshModelNode
- out parameter with the back ModelNode (null if ModelNode is fully in the front of the plane)
See Also