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. The triangle is unaffected.
      Parameters:
      cornerIndex - which corner to access (0, 1, or 2)
      Returns:
      the index of the vertex in the mesh
    • isEqual

      boolean isEqual(ConstIndexedTriangleNoMaterial other)
      Test whether the current triangle is equivalent to the argument. Both triangles are unaffected.
      Parameters:
      other - the triangle to compare with (not null, unaffected)
      Returns:
      true if equal, false if unequal
    • 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)