public interface WritableObj
ObjReader| Modifier and Type | Method and Description |
|---|---|
void |
addFace(int... v)
Add the specified face with the given vertex indices, but without
texture- or normal indices.
|
void |
addFace(int[] v,
int[] vt,
int[] vn)
Add the specified face.
|
void |
addFace(ObjFace face)
Add the given face.
|
void |
addFaceWithAll(int... v)
Add the specified face with the given vertex, texture coordinate
and normal indices.
|
void |
addFaceWithNormals(int... v)
Add the specified face with the given vertex and normal indices,
but without texture coordinate indices.
|
void |
addFaceWithTexCoords(int... v)
Add the specified face with the given vertex and texture coordinate
indices, but without normal indices.
|
void |
addNormal(float x,
float y,
float z)
Add the given normal
|
void |
addNormal(FloatTuple normal)
Add the given normal
|
void |
addTexCoord(float x)
Add the given texture coordinate
|
void |
addTexCoord(float x,
float y)
Add the given texture coordinate
|
void |
addTexCoord(float x,
float y,
float z)
Add the given texture coordinate
|
void |
addTexCoord(FloatTuple texCoord)
Add the given texture coordinate
|
void |
addVertex(float x,
float y,
float z)
Add the given vertex
|
void |
addVertex(FloatTuple vertex)
Add the given vertex
|
void |
setActiveGroupNames(Collection<? extends String> groupNames)
Set the groups with the given names to be active right now.
|
void |
setActiveMaterialGroupName(String materialGroupName)
Set the material group with the given names to be active right now
Faces that are added subsequently will be added to the active
material group, creating this material group if necessary.
|
void |
setMtlFileNames(Collection<? extends String> mtlFileNames)
Set the given MTL file names.
|
void addVertex(FloatTuple vertex)
vertex - The vertex to add.NullPointerException - If the vertex is nullvoid addVertex(float x,
float y,
float z)
x - The x-coordinatey - The y-coordinatez - The z-coordinatevoid addTexCoord(FloatTuple texCoord)
texCoord - The texture coordinate to add.NullPointerException - If the texture coordinate is
nullvoid addTexCoord(float x)
x - The x-coordinatevoid addTexCoord(float x,
float y)
x - The x-coordinatey - The y-coordinatevoid addTexCoord(float x,
float y,
float z)
x - The x-coordinatey - The y-coordinatez - The z-coordinatevoid addNormal(FloatTuple normal)
normal - The normal to add.NullPointerException - If the normal is nullvoid addNormal(float x,
float y,
float z)
x - The x-coordinatey - The y-coordinatez - The z-coordinatevoid setActiveGroupNames(Collection<? extends String> groupNames)
null,
then this call will have no effect. If the given collection is empty,
then the default group (named "default") will be activated.groupNames - The group namesNullPointerException - If the given collection contains
null elementsvoid setActiveMaterialGroupName(String materialGroupName)
null, then this call will have no
effect.materialGroupName - The material group namevoid addFace(ObjFace face)
face - The face to add.NullPointerException - If the face is nullvoid addFace(int... v)
v - The vertex indicesIllegalArgumentException - If one of the given indices is
negative or not smaller than the number of vertices that have been
added until now.void addFaceWithTexCoords(int... v)
v - The vertex- and texture coordinate indicesIllegalArgumentException - If one of the given indices is
negative or not smaller than the number of vertices or texture
coordinates that have been added until now.void addFaceWithNormals(int... v)
v - The vertex- and normal indicesIllegalArgumentException - If one of the given indices is
negative or not smaller than the number of vertices or normals
that have been added until now.void addFaceWithAll(int... v)
v - The vertex- texture coordinate and normal indicesIllegalArgumentException - If one of the given indices is
negative or not smaller than the number of vertices, texture
coordinates or normals that have been added until now.void addFace(int[] v,
int[] vt,
int[] vn)
v - The vertex indicesvt - The texture coordinate indices. May be null.vn - The normal indices. May be nullNullPointerException - If the vertex indices array is
nullIllegalArgumentException - If one of the given indices is
negative or not smaller than the number of corresponding vertices,
texture coordinates or normals that have been added until now,
respectively.IllegalArgumentException - If the given (non-null) arrays
have different lengthsvoid setMtlFileNames(Collection<? extends String> mtlFileNames)
mtlFileNames - The names of the MTL fileCopyright © 2018. All rights reserved.