Package engine.objConverter
Class Vertex
java.lang.Object
engine.objConverter.Vertex
Vertex Class is loading the object's vertices,texture and normals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
float
int
org.joml.Vector3f
int
boolean
hasSameTextureAndNormal
(int textureIndexOther, int normalIndexOther) boolean
isSet()
void
setDuplicateVertex
(Vertex duplicateVertex) void
setNormalIndex
(int normalIndex) void
setTextureIndex
(int textureIndex)
-
Constructor Details
-
Vertex
public Vertex(int index, org.joml.Vector3f position)
-
-
Method Details
-
getIndex
public int getIndex() -
getLength
public float getLength() -
isSet
public boolean isSet() -
hasSameTextureAndNormal
public boolean hasSameTextureAndNormal(int textureIndexOther, int normalIndexOther) -
setTextureIndex
public void setTextureIndex(int textureIndex) -
setNormalIndex
public void setNormalIndex(int normalIndex) -
getPosition
public org.joml.Vector3f getPosition() -
getTextureIndex
public int getTextureIndex() -
getNormalIndex
public int getNormalIndex() -
getDuplicateVertex
-
setDuplicateVertex
-