Struct Mesh.MeshTriangleSource
- Namespace
- BepuPhysics.Collidables
- Assembly
- BepuPhysics.dll
public struct Mesh.MeshTriangleSource : ITriangleSource
- Implements
- Inherited Members
Constructors
MeshTriangleSource(in Mesh)
public MeshTriangleSource(in Mesh mesh)
Parameters
meshMesh
Methods
GetNextTriangle(out Vector3, out Vector3, out Vector3)
Gets the next triangle in the sequence, if any.
public bool GetNextTriangle(out Vector3 a, out Vector3 b, out Vector3 c)
Parameters
aVector3First vertex in the triangle.
bVector3Second vertex in the triangle.
cVector3Third vertex in the triangle.
Returns
- bool
True if there was another triangle, false otherwise.