Class PbTetrahedronMesh3D
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.meshviz.graph.PbBase
-
- com.openinventor.meshviz.data.PbMesh
-
- com.openinventor.meshviz.data.PbMesh3D
-
- com.openinventor.meshviz.data.PbIndexedMesh3D
-
- com.openinventor.meshviz.data.PbTetrahedronMesh3D
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PbTetrahedronMesh3D extends PbIndexedMesh3D implements java.lang.Cloneable
Defines a mesh of tetrahedrons. Class to define an indexed 3D mesh made up of tetrahedrons. This mesh is defined by a list of tetrahedrons. Each tetrahedron is defined by 4 indices of nodes.The nodes coordinates are defined by 3 arrays x_nod, y_nod, z_nod of num_nodes floats. The tetrahedrons are defined by the array tetrahedron_index of num_tetrahedrons*4 integers. tetrahedron_index[(n*4)+p] is the p-th node index of the n-th tetrahedron of the mesh (0 <= p <= 3). Each tetrahedron must be numbered by repecting the following rule : the 3 first indices define a facet of the tetrahedron and orient it towards the interior of the tetrahedron.
Each facet of a tetrahedron may have 2 references in the mesh, that is, one facet is common to 2 tetrahedrons. The facets which are referred to once in the mesh define the mesh skin.
The values on the mesh nodes are defined by the PbMesh.addValuesSet(set_index,val) method, where val argument is an array of num_nodes floats.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PbIndexedMesh3D
PbIndexedMesh3D.NodesInfo
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PbMesh
PbMesh.CellBox, PbMesh.ContainingCell, PbMesh.CoordinatesInfo, PbMesh.DataBindings
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PbTetrahedronMesh3D()
Calls PbTetrahedronMesh3D(true).PbTetrahedronMesh3D(boolean isDataDuplicate)
Constructor of a default simple mesh.PbTetrahedronMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_tetrahedrons, int[] tetrahedron_index)
Calls PbTetrahedronMesh3D(num_nodes, x_nod, y_nod, z_nod, num_tetrahedrons, tetrahedron_index, true).PbTetrahedronMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_tetrahedrons, int[] tetrahedron_index, boolean is_data_duplicate)
Constructor of a volume mesh.PbTetrahedronMesh3D(PbTetrahedronMesh3D mesh)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
void
setGeometry(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_tetrahedrons, int[] tetrahedron_index)
Sets a new geometry.-
Methods inherited from class com.openinventor.meshviz.data.PbIndexedMesh3D
getNodes, setGeometry
-
Methods inherited from class com.openinventor.meshviz.data.PbMesh
addStringsSet, addStringsSet, addValuesSet, addValuesSet, addValuesSet, addValuesSet, addVecsSet, addVecsSet, findContainingCell, findContainingCell, getArea, getBiggestCellBox, getBoundingBox, getCell, getCoordinates, getDirectValuesSet, getDirectVecsSet, getMaxValuesSet, getMaxVecsSet, getMinValuesSet, getMinVecsSet, getNodeCoord, getNumCells, getNumNodes, getNumStringsSet, getNumValuesSet, getNumVecsSet, getSmallestCellBox, getStringsSetName, getValuesBinding, getValuesSet, getValuesSetName, getVecsSet, getVecsSetName, getVolume, isDataDuplicated, removeAllStringsSet, removeAllValuesSet, removeAllVecsSet, removeStringsSet, removeValuesSet, removeVecsSet, setCoordinates
-
Methods inherited from class com.openinventor.meshviz.graph.PbBase
enableConnection, isConnectionEnabled, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
PbTetrahedronMesh3D
public PbTetrahedronMesh3D()
Calls PbTetrahedronMesh3D(true).
-
PbTetrahedronMesh3D
public PbTetrahedronMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_tetrahedrons, int[] tetrahedron_index)
Calls PbTetrahedronMesh3D(num_nodes, x_nod, y_nod, z_nod, num_tetrahedrons, tetrahedron_index, true).
-
PbTetrahedronMesh3D
public PbTetrahedronMesh3D(PbTetrahedronMesh3D mesh)
Copy constructor.
-
PbTetrahedronMesh3D
public PbTetrahedronMesh3D(boolean isDataDuplicate)
Constructor of a default simple mesh. See alsoPbMesh
for more explanations about data duplication.
-
PbTetrahedronMesh3D
public PbTetrahedronMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_tetrahedrons, int[] tetrahedron_index, boolean is_data_duplicate)
Constructor of a volume mesh. See alsoPbMesh
for more explanations about data duplication.
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classPbIndexedMesh3D
-
setGeometry
public void setGeometry(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_tetrahedrons, int[] tetrahedron_index)
Sets a new geometry.
-
-