Package gaiasky.util.gdx
Class ModelCreator.Face
java.lang.Object
gaiasky.util.gdx.ModelCreator.Face
- All Implemented Interfaces:
ModelCreator.IFace
- Enclosing class:
- ModelCreator
public class ModelCreator.Face extends java.lang.Object implements ModelCreator.IFace
Contains the index info for a face.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Face(int... v)Constructs a face with the indeces of the vertices. -
Method Summary
Modifier and Type Method Description int[]n()voidsetNormals(int... n)Sets the normal indeces.int[]v()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
Constructor Details
-
Face
public Face(int... v)Constructs a face with the indeces of the vertices.- Parameters:
v- Indeces of the vertices.
-
-
Method Details
-
setNormals
public void setNormals(int... n)Sets the normal indeces.- Specified by:
setNormalsin interfaceModelCreator.IFace- Parameters:
n- Indeces of the normals.
-
v
public int[] v()- Specified by:
vin interfaceModelCreator.IFace
-
n
public int[] n()- Specified by:
nin interfaceModelCreator.IFace
-