JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
jarmos.geometry.GeometryData Class Reference

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...
 

Detailed Description

This is a container class for all geometry-related data of a reduced model.

2011-08-24:

  • Started changes to this class and moved it to JaRMoSBase project
  • Commented out a lot of functions whose purpose are not yet investigated but also not used in JaRMoS.
  • New class name GeometryData (previously GLObject) and some renames for readability improvement
Author
Daniel Wirtz
Date
2013-08-07
2011-08-24

Definition at line 24 of file GeometryData.java.

Member Function Documentation

void jarmos.geometry.GeometryData.addDisplacements ( DisplacementField  d,
int  parts 
)

Sets the displacement data for this geometry according to the DisplacementField provided.

Parameters
dThe displacement field

TODO Include automatic scaling?

Returns
The number of vertex sets with different displacements available

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.

Parameters
transforms

Definition at line 254 of file GeometryData.java.

int jarmos.geometry.GeometryData.getNumVertices ( )

The number of (original) vertices of the geometry.

Returns
the numVertices

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 ( )
Returns
If the data is 2D data

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.

Parameters
m
Returns
True if loading was successful, false otherwise

Definition at line 365 of file GeometryData.java.

Member Data Documentation

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.


The documentation for this class was generated from the following file: