Class PbIndexedMesh3D
- 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
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
PbHexahedronMesh3D
,PbTetrahedronMesh3D
public class PbIndexedMesh3D extends PbMesh3D implements java.lang.Cloneable
Defines a volume mesh of polyhedrons. Class to define an indexed 3D mesh. Each cell of this type of mesh is a polyhedron with 4, 5, 6 or 8 nodes. Each polyhedron is defined by a list of node indices.The nodes coordinates are defined by 3 arrays x_nod, y_nod, z_nod of num_nodes floats. The cells are defined by the array cell_type (size num_cells) and cell_index. cell_type[n] defines the number of nodes in the n-th cells: if cell_type[i] = 4, the i-th cell is a tetrahedron, if cell_type[i] = 5 it is a pyramid, if cell_type[i] = 6 it is a prism, and if cell_type[i] = 8 it is an hexahedron. cell_index is an array of S integers, where S = cell_type[0] + cell_type[1] + ... + cell_type[num_nodes - 1]. cell_index contains the num_cells lists of node indices which define each cell topology.
Each facet of a cell may have 2 references in the mesh, that is, one facet is common to 2 cells. 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 Modifier and Type Class Description static class
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 PbIndexedMesh3D()
Calls PbIndexedMesh3D(true).PbIndexedMesh3D(boolean is_data_duplicate)
Constructor of a default simple mesh.PbIndexedMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_cells, int[] cell_index, int[] cell_type)
Calls PbIndexedMesh3D(num_nodes, x_nod, y_nod, z_nod, num_cells, cell_index, cell_type, true).PbIndexedMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_cells, int[] cell_index, int[] cell_type, boolean is_data_duplicate)
Constructor of a 3D volume mesh.PbIndexedMesh3D(PbIndexedMesh3D mesh)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
PbIndexedMesh3D.NodesInfo
getNodes()
Gets the mesh nodes coordinate arrays .void
setGeometry(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_cells, int[] cell_index, int[] cell_type)
Sets a new geometry.-
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
-
PbIndexedMesh3D
public PbIndexedMesh3D()
Calls PbIndexedMesh3D(true).
-
PbIndexedMesh3D
public PbIndexedMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_cells, int[] cell_index, int[] cell_type)
Calls PbIndexedMesh3D(num_nodes, x_nod, y_nod, z_nod, num_cells, cell_index, cell_type, true).
-
PbIndexedMesh3D
public PbIndexedMesh3D(boolean is_data_duplicate)
Constructor of a default simple mesh. See alsoPbMesh
for more explanations about data duplication.
-
PbIndexedMesh3D
public PbIndexedMesh3D(PbIndexedMesh3D mesh)
Copy constructor.
-
PbIndexedMesh3D
public PbIndexedMesh3D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_cells, int[] cell_index, int[] cell_type, boolean is_data_duplicate)
Constructor of a 3D volume mesh. See alsoPbMesh
for more explanations about data duplication.
-
-
Method Detail
-
clone
public java.lang.Object clone()
-
setGeometry
public void setGeometry(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_cells, int[] cell_index, int[] cell_type)
Sets a new geometry.
-
getNodes
public PbIndexedMesh3D.NodesInfo getNodes()
Gets the mesh nodes coordinate arrays .
-
-