java.lang.Object
team.lodestar.lodestone.systems.model.obj.data.IndexedMesh

public class IndexedMesh extends Object
Represents a mesh with indices to vertices.

To get the vertices, use getVertices(IndexedModel) or

  • Field Details

  • Constructor Details

    • IndexedMesh

      public IndexedMesh()
  • Method Details

    • addIndex

      public void addIndex(int index)
    • getIndices

      public List<Integer> getIndices()
    • setIndices

      public void setIndices(List<Integer> indices)
    • getMeshSize

      public int getMeshSize()
    • getVertices

      public List<Vertex> getVertices(IndexedModel model)
    • getVertex

      public Vertex getVertex(IndexedModel model, int index)
    • isCompatibleWith

      public boolean isCompatibleWith(com.mojang.blaze3d.vertex.VertexFormat.Mode mode)
    • isEdge

      public boolean isEdge()
    • isTriangle

      public boolean isTriangle()
    • isQuad

      public boolean isQuad()
    • isNgon

      public boolean isNgon()