Click or drag to resize
AB4D logo

MeshUtilsGetIntersectingTriangles Method

GetIntersectingTriangles returns a list of indexes of triangles from the mesh that intersect the specified boundingBox. To actually split the mesh you can then call the SplitMeshByIndexesOfTriangles(MeshGeometry3D, ListInt32, Boolean, MeshGeometry3D, MeshGeometry3D) method.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static List<int> GetIntersectingTriangles(
	Rect3D boundingBox,
	MeshGeometry3D mesh,
	Transform3D meshTransform = null
)

Parameters

boundingBox  Rect3D
bounding box as Rect3D
mesh  MeshGeometry3D
MeshGeometry3D
meshTransform  Transform3D  (Optional)
optional Transform3D that is applied to mehs positions

Return Value

ListInt32
list of indexes of triangles
See Also