JaRMoS
1.1
Java Reduced Model Simulations
|
This is a container class for all geometry-related data of a reduced model. More...
Public Member Functions | |
void | addDisplacements (DisplacementField d, int parts) |
Sets the displacement data for this geometry according to the DisplacementField provided. More... | |
void | createMesh (List< MeshTransform > transforms, boolean update) |
Transforms the original vertices by all given MeshTransforms in the list and concatenates the results in a large vertices array. More... | |
int | getNumVertices () |
The number of (original) vertices of the geometry. More... | |
float[][] | getVertices () |
boolean | is2D () |
boolean | loadModelGeometry (AModelManager m) |
Reads the geometry data for the current model using the ModelManager. More... | |
Public Attributes | |
float | boxsize |
short[] | edges |
Edges data. More... | |
short[] | faces |
Faces data. More... | |
short[] | faceWireframe |
Faces edge/wireframe data. More... | |
float[][] | fnormal |
For 3D geometry this contains the face normal data (three coordinates (x,y,z) per face) More... | |
float[] | nminmax = { 1e9f, 1e9f, 1e9f, -1e9f, -1e9f, -1e9f } |
the bounding box (xyz range) of the model More... | |
float[][] | normal |
For 3D geometry this contains the local node normal data (three coordinates (x,y,z) per node) More... | |
int | numFaces |
Number of faces. More... | |
float[] | originalVertices |
The reference nodes. More... | |
int[] | vertexLTFuncNr |
tell us which subdomain our vertices belong to More... | |
This is a container class for all geometry-related data of a reduced model.
2011-08-24:
Definition at line 24 of file GeometryData.java.
void jarmos.geometry.GeometryData.addDisplacements | ( | DisplacementField | d, |
int | parts | ||
) |
Sets the displacement data for this geometry according to the DisplacementField provided.
d | The displacement field |
TODO Include automatic scaling?
Definition at line 123 of file GeometryData.java.
void jarmos.geometry.GeometryData.createMesh | ( | List< MeshTransform > | transforms, |
boolean | update | ||
) |
Transforms the original vertices by all given MeshTransforms in the list and concatenates the results in a large vertices array.
transforms |
Definition at line 254 of file GeometryData.java.
int jarmos.geometry.GeometryData.getNumVertices | ( | ) |
The number of (original) vertices of the geometry.
Definition at line 281 of file GeometryData.java.
float [][] jarmos.geometry.GeometryData.getVertices | ( | ) |
Definition at line 285 of file GeometryData.java.
boolean jarmos.geometry.GeometryData.is2D | ( | ) |
Definition at line 292 of file GeometryData.java.
boolean jarmos.geometry.GeometryData.loadModelGeometry | ( | AModelManager | m | ) |
Reads the geometry data for the current model using the ModelManager.
m |
Definition at line 365 of file GeometryData.java.
float jarmos.geometry.GeometryData.boxsize |
Definition at line 26 of file GeometryData.java.
short [] jarmos.geometry.GeometryData.edges |
Edges data.
Each face ranges over two short values, giving the indices of the two corner nodes/vertices.
Definition at line 47 of file GeometryData.java.
short [] jarmos.geometry.GeometryData.faces |
Faces data.
Each face ranges over three short values, giving the indices of the three corner nodes/vertices.
Definition at line 52 of file GeometryData.java.
short [] jarmos.geometry.GeometryData.faceWireframe |
Faces edge/wireframe data.
Each wireframe ranges over six short values, giving the indices of the three node connecting edges in the order n1->n2, n2->n3, n3->n1.
Definition at line 60 of file GeometryData.java.
float [][] jarmos.geometry.GeometryData.fnormal |
For 3D geometry this contains the face normal data (three coordinates (x,y,z) per face)
Definition at line 65 of file GeometryData.java.
float [] jarmos.geometry.GeometryData.nminmax = { 1e9f, 1e9f, 1e9f, -1e9f, -1e9f, -1e9f } |
the bounding box (xyz range) of the model
Definition at line 75 of file GeometryData.java.
float [][] jarmos.geometry.GeometryData.normal |
For 3D geometry this contains the local node normal data (three coordinates (x,y,z) per node)
Definition at line 80 of file GeometryData.java.
int jarmos.geometry.GeometryData.numFaces |
Number of faces.
Definition at line 85 of file GeometryData.java.
float [] jarmos.geometry.GeometryData.originalVertices |
The reference nodes.
A copy of the original nodes array which might be modified for models with changing geometry.
Definition at line 96 of file GeometryData.java.
int [] jarmos.geometry.GeometryData.vertexLTFuncNr |
tell us which subdomain our vertices belong to
Definition at line 107 of file GeometryData.java.