Package gaiasky.util.gdx
Class ModelCreator.Face
java.lang.Object
gaiasky.util.gdx.ModelCreator.Face
- All Implemented Interfaces:
ModelCreator.IFace
- Enclosing class:
ModelCreator
Contains the index info for a face.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint[]
b()
int[]
n()
void
setBinormals
(int... n) Sets the binormal indices.void
setNormals
(int... n) Sets the normal indices.void
setTangents
(int... n) Sets the tangent indices.int[]
t()
int[]
v()
-
Field Details
-
v
public int[] vThis stores the indices for both the vertices and the UV coordinates -
n
public int[] nThis stores the indices for the normals -
t
public int[] tThis stores the indices for the tangents -
b
public int[] bThis stores the indices for the binormals
-
-
Constructor Details
-
Face
public Face(int... v) Constructs a face with the indices of the vertices.- Parameters:
v
- Indices of the vertices.
-
-
Method Details
-
setNormals
public void setNormals(int... n) Sets the normal indices.- Specified by:
setNormals
in interfaceModelCreator.IFace
- Parameters:
n
- Indices of the normals.
-
setBinormals
public void setBinormals(int... n) Sets the binormal indices.- Specified by:
setBinormals
in interfaceModelCreator.IFace
- Parameters:
n
- Indices of the binormals.
-
setTangents
public void setTangents(int... n) Sets the tangent indices.- Specified by:
setTangents
in interfaceModelCreator.IFace
- Parameters:
n
- Indices of the tangents.
-
v
public int[] v()- Specified by:
v
in interfaceModelCreator.IFace
-
n
public int[] n()- Specified by:
n
in interfaceModelCreator.IFace
-
t
public int[] t()- Specified by:
t
in interfaceModelCreator.IFace
-
b
public int[] b()- Specified by:
b
in interfaceModelCreator.IFace
-