 |
MeshUtilsSliceMesh Method |
Slices the StandardMesh with the specified Plane and returns two new StandardMesh objects:
one StandardMesh that is in front of the plane (in the direction of plane's Normal vector) and one StandardMesh that is in the back of the plane.
If StandardMesh is fully in front (or in back) of the Plane, then the same instance of StandardMesh is returned (the other returned mesh is null).
If the StandardMesh intersects the Plane, it is sliced and new StandardMesh objects are created from it.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic static (StandardMesh frontMesh, StandardMesh? backMesh) SliceMesh(
Plane plane,
StandardMesh mesh,
Transform? transform = null
)
Parameters
- plane Plane
- Plane
- mesh StandardMesh
- StandardMesh
- transform Transform (Optional)
- Optional Transform that is added to the StandardMesh (null by default)
Return Value
ValueTupleStandardMesh,
StandardMesh(frontMesh, backMesh) - two meshes as a Tuple
Remarks
Slices the StandardMesh with the specified Plane and returns two new StandardMesh objects:
one StandardMesh that is in front of the plane (in the direction of plane's Normal vector) and one StandardMesh that is in the back of the plane.
If StandardMesh is fully in front (or in back) of the Plane, then the same instance of StandardMesh is returned (the other returned mesh is null).
If the StandardMesh intersects the Plane, it is sliced and new StandardMesh objects are created from it.
See Also