Click or drag to resize
Ab4d.SharpEngine 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(StandardMesh, ListInt32, Boolean, StandardMesh, StandardMesh) method.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static List<int> GetIntersectingTriangles(
	BoundingBox boundingBox,
	StandardMesh mesh,
	Transform? meshTransform = null
)

Parameters

boundingBox  BoundingBox
bounding box as BoundingBox
mesh  StandardMesh
StandardMesh
meshTransform  Transform  (Optional)
optional Transform that is applied to mesh positions

Return Value

ListInt32
list of indexes of triangles
See Also