Interface ConstIndexedTriangleNoMaterial

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Subinterfaces:
ConstIndexedTriangle
All Known Implementing Classes:
IndexedTriangle, IndexedTriangleNoMaterial

public interface ConstIndexedTriangleNoMaterial extends ConstJoltPhysicsObject
Read-only access to an IndexedTriangleNoMaterial. (native type: const IndexedTriangleNoMaterial)
  • Method Details

    • getIdx

      int getIdx(int cornerIndex)
      Return the mesh-vertex index of the specified corner.
      Parameters:
      cornerIndex - which corner to access (0, 1, or 2)
      Returns:
      the index of the vertex in the mesh
    • put

      void put(IntBuffer storeBuffer)
      Write all 3 indices to the specified buffer and advance the buffer's position by 3. The triangle is unaffected.
      Parameters:
      storeBuffer - the destination buffer (not null)