|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.lod.CollapseRecord
public class CollapseRecord
CollapseRecord originally ported from David Eberly's c++,
modifications and enhancements made from there.
This class keeps an array of vertex index positions that are to be collapsed.
It is used to modify ClodMesh objects so that they contain less information.
| Field Summary | |
|---|---|
int[] |
indices
An integer value in the Mesh's indices array referencing a vertex to keep or throw. |
int |
numbIndices
Lenght of this indices array. |
int |
numbTriangles
The number of triangles in the Mesh after edge collapse. |
int |
numbVerts
|
int |
vertToKeep
An int index in the Mesh's vertex array. |
int |
vertToThrow
An int index in the Mesh's vertex array. |
| Constructor Summary | |
|---|---|
CollapseRecord()
Creates a new collapse record with all values at their default. |
|
CollapseRecord(int toKeep,
int toThrow,
int vertQuantity,
int triQuantity)
Creates a new CollapseRecord. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getClassTag()
The peristed type for the object. |
void |
read(JMEImporter e)
|
void |
write(JMEExporter e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int vertToKeep
public int vertToThrow
public int numbVerts
public int numbTriangles
public int numbIndices
public int[] indices
| Constructor Detail |
|---|
public CollapseRecord(int toKeep,
int toThrow,
int vertQuantity,
int triQuantity)
toKeep - The vertex index that is kept.toThrow - The vertex index that is thrown.vertQuantity - The new vertex quantity of the mesh using this record.triQuantity - The new triangle quantity of the mesh using this record.public CollapseRecord()
| Method Detail |
|---|
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablejava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savablejava.io.IOExceptionpublic java.lang.Class getClassTag()
Savable
getClassTag in interface Savable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||