public static class OBJModel.Vertex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private OBJModel.Material |
material |
private OBJModel.Normal |
normal |
private javax.vecmath.Vector4f |
position |
private OBJModel.TextureCoordinate |
texCoord |
Constructor and Description |
---|
Vertex(javax.vecmath.Vector4f position,
OBJModel.Material material) |
Modifier and Type | Method and Description |
---|---|
OBJModel.Material |
getMaterial() |
OBJModel.Normal |
getNormal() |
javax.vecmath.Vector4f |
getPos() |
javax.vecmath.Vector3f |
getPos3() |
OBJModel.TextureCoordinate |
getTextureCoordinate() |
boolean |
hasNormal() |
boolean |
hasTextureCoordinate() |
void |
setMaterial(OBJModel.Material material) |
void |
setNormal(OBJModel.Normal normal) |
void |
setPos(javax.vecmath.Vector4f position) |
void |
setTextureCoordinate(OBJModel.TextureCoordinate texCoord) |
java.lang.String |
toString() |
private javax.vecmath.Vector4f position
private OBJModel.Normal normal
private OBJModel.TextureCoordinate texCoord
private OBJModel.Material material
public Vertex(javax.vecmath.Vector4f position, OBJModel.Material material)
public void setPos(javax.vecmath.Vector4f position)
public javax.vecmath.Vector4f getPos()
public javax.vecmath.Vector3f getPos3()
public boolean hasNormal()
public void setNormal(OBJModel.Normal normal)
public OBJModel.Normal getNormal()
public boolean hasTextureCoordinate()
public void setTextureCoordinate(OBJModel.TextureCoordinate texCoord)
public OBJModel.TextureCoordinate getTextureCoordinate()
public void setMaterial(OBJModel.Material material)
public OBJModel.Material getMaterial()
public java.lang.String toString()
toString
in class java.lang.Object