public class UserUVCollection
extends java.lang.Object
Constructor and Description |
---|
UserUVCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addUV(int materialIndex,
java.lang.String uvSetName,
Vector2f uv,
int jmeVertexIndex)
Adds a single UV coordinates for a specified vertex index.
|
java.util.LinkedHashMap<java.lang.String,java.util.List<Vector2f>> |
getUVCoordinates(int materialNumber) |
Vector2f |
getUVForVertex(java.lang.String uvSetName,
int vertexIndex) |
boolean |
hasUVCoordinates() |
public void addUV(int materialIndex, java.lang.String uvSetName, Vector2f uv, int jmeVertexIndex)
materialIndex
- the material indexuvSetName
- the UV set nameuv
- the added UV coordinatesjmeVertexIndex
- the index of the vertex in result jme meshpublic Vector2f getUVForVertex(java.lang.String uvSetName, int vertexIndex)
uvSetName
- the name of the UV setvertexIndex
- the vertex index corresponds to the index in jme mesh and not the original one in blenderpublic java.util.LinkedHashMap<java.lang.String,java.util.List<Vector2f>> getUVCoordinates(int materialNumber)
materialNumber
- the material number that is appied to the meshpublic boolean hasUVCoordinates()