Class IndexedMesh
java.lang.Object
team.lodestar.lodestone.systems.model.obj.data.IndexedMesh
Represents a mesh with indices to vertices.
To get the vertices, use getVertices(IndexedModel) or
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndex(int index) intgetVertex(IndexedModel model, int index) getVertices(IndexedModel model) booleanisCompatibleWith(com.mojang.blaze3d.vertex.VertexFormat.Mode mode) booleanisEdge()booleanisNgon()booleanisQuad()booleanvoidsetIndices(List<Integer> indices)
-
Field Details
-
indices
-
-
Constructor Details
-
IndexedMesh
public IndexedMesh()
-
-
Method Details
-
addIndex
public void addIndex(int index) -
getIndices
-
setIndices
-
getMeshSize
public int getMeshSize() -
getVertices
-
getVertex
-
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()
-