Click or drag to resize
Ab4d.SharpEngine logo

SlicerSliceMesh(StandardMesh, Transform, StandardMesh, StandardMesh) Method

Slices the specified StandardMesh with the specified Plane and creates 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 the specified StandardMesh is fully in front (or in back) of the Plane, then the same instance of StandardMesh is returned (the other returned StandardMesh is null). If the specified StandardMesh intersects the Plane, it is sliced and new StandardMesh objects are created from it.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public void SliceMesh(
	StandardMesh? standardMesh,
	Transform? transform,
	out StandardMesh?? frontStandardMesh,
	out StandardMesh?? backStandardMesh
)

Parameters

standardMesh  StandardMesh
StandardMesh to slice
transform  Transform
additional transformation that transforms the StandardMesh
frontStandardMesh  StandardMesh
out parameter with the front StandardMesh (null if StandardMesh is fully in the back of the plane)
backStandardMesh  StandardMesh
out parameter with the back StandardMesh (null if StandardMesh is fully in the front of the plane)
See Also