Click or drag to resize
Ab4d.SharpEngine logo

ModelUtilsSliceModelNode(Plane, ModelNode, Transform) Method

Slices the specified ModelNode with the specified Plane and returns two new MeshModelNode objects: one MeshModelNode that is in front of the plane (in the direction of plane's Normal vector) and one MeshModelNode 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 GroupNode is null). If the specified ModelNode intersects the Plane, it is sliced and new MeshModelNode objects are created from it.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static (MeshModelNode frontModelNode, MeshModelNode? backModelNode) SliceModelNode(
	Plane plane,
	ModelNode modelNode,
	Transform? parentTransform
)

Parameters

plane  Plane
Plane
modelNode  ModelNode
ModelNode to slice
parentTransform  Transform
additional transformation that transforms the groupNode

Return Value

ValueTupleMeshModelNode, MeshModelNode
(frontModelNode, backModelNode) - two MeshModelNode as a Tuple
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.ModelUtils.SliceModelNode(System.Numerics.Plane,Ab4d.SharpEngine.SceneNodes.ModelNode,Ab4d.SharpEngine.Transformations.Transform)"]

See Also