public interface IVertexController
Modifier and Type | Field and Description |
---|---|
static boolean |
ALTER_SOURCE_MESH
The VertexController will modify the source data when applied, i.e.
|
static boolean |
PRESERVE_SOURCE_MESH
The VertexController will start with a "fresh" source mesh everytime it's
being applied.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies the controller's modifications to the mesh.
|
void |
cleanup()
Like setup(), this method can be overwritten to do some additional
work...this time when the controller will be removed.
|
void |
destroy()
This method will be called when the controller will be removed from a
Mesh.
|
SimpleVector[] |
getDestinationMesh()
Returns the destination mesh's vertex data.
|
SimpleVector[] |
getDestinationNormals()
Returns the destination mesh's normals.
|
int |
getMeshSize()
Returns the size of the mesh.
|
int[] |
getPolygonIDs(int vertex,
int max)
Returns the polygon IDs of the polygons that are using the vertex
"number".
|
SimpleVector[] |
getSourceMesh()
Returns the source mesh's vertex data, i.e. the vertex-data that needs
modification.
|
SimpleVector[] |
getSourceNormals()
Returns the source mesh's normals, i.e. the normals that need
modification.
|
float[][] |
getTangentVectors()
If available, this will return the tangent vectors for the mesh.
|
boolean |
init(Mesh mesh,
boolean modify)
Initialize the VertexController with a mesh to modify and a operating
mode.
|
void |
refreshMeshData()
Refreshes the controller's data with the data taken directly from the
Mesh.
|
boolean |
setup()
This method can be overwritten to do some additional setup work.
|
void |
updateMesh()
Alters the actual Mesh to reflect the modifications that have been
applied to the DestinationMesh- and DestinationNormals-arrays.
|
static final boolean ALTER_SOURCE_MESH
static final boolean PRESERVE_SOURCE_MESH
boolean init(Mesh mesh, boolean modify)
mesh
- the Mesh the controller should be assigned tomodify
- the modeALTER_SOURCE_MESH
,
PRESERVE_SOURCE_MESH
boolean setup()
void apply()
SimpleVector[] getSourceMesh()
SimpleVector[] getSourceNormals()
SimpleVector[] getDestinationMesh()
SimpleVector[] getDestinationNormals()
int getMeshSize()
void updateMesh()
void refreshMeshData()
void destroy()
Mesh.removeVertexController()
void cleanup()
Mesh.removeVertexController()
int[] getPolygonIDs(int vertex, int max)
vertex
- the number of the vertexmax
- the maximum of IDs to returnfloat[][] getTangentVectors()