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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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