Table of Contents

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

mesh Mesh

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

a Vector3

First vertex in the triangle.

b Vector3

Second vertex in the triangle.

c Vector3

Third vertex in the triangle.

Returns

bool

True if there was another triangle, false otherwise.