Package com.openinventor.meshviz.data
Class PbRegularCartesianGrid3D
- 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.PbGrid3D
-
- com.openinventor.meshviz.data.PbRegularCartesianGrid3D
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PbRegularCartesianGrid3D extends PbGrid3D implements java.lang.Cloneable
Defines a regular cartesian grid volume mesh. Class to define a volume mesh represented by a grid, with cartesian coordinates, of which the lines are parallel to X-axis, Y-axis or Z-axis. This mesh is said regular because the gap between 2 consecutive parallel lines is constant.The geometry of such a mesh is defined by the 3 dimensions of its grid (num_x, num_y, num_z), and by its bounding box (x_min, y_min, z_min, x_max, y_max, z_max)
The values on the mesh nodes are defined by the PbMesh.addValuesSet(set_index, val) method, where val argument is an array of num_x * num_y * num_z floats.
-
-
Nested Class Summary
-
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 PbRegularCartesianGrid3D()
Calls PbRegularCartesianGrid3D(true).PbRegularCartesianGrid3D(boolean isDataDuplicate)
Constructor of a default simple mesh.PbRegularCartesianGrid3D(int num_x, int num_y, int num_z, float x_min, float y_min, float z_min, float x_max, float y_max, float z_max)
Calls PbRegularCartesianGrid3D(num_x, num_y, num_z, x_min, y_min, z_min, x_max, y_max, z_max, true).PbRegularCartesianGrid3D(int num_x, int num_y, int num_z, float x_min, float y_min, float z_min, float x_max, float y_max, float z_max, boolean isDataDuplicate)
Constructor of a 3D regular grid mesh.PbRegularCartesianGrid3D(PbRegularCartesianGrid3D mesh)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
void
setGeometry(int num_x, int num_y, int num_z, float x_min, float y_min, float z_min, float x_max, float y_max, float z_max)
Defines a new geometry.-
Methods inherited from class com.openinventor.meshviz.data.PbGrid3D
getCellIndices, getDim, getNodeCoord, getNodeIndices, 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
-
PbRegularCartesianGrid3D
public PbRegularCartesianGrid3D()
Calls PbRegularCartesianGrid3D(true).
-
PbRegularCartesianGrid3D
public PbRegularCartesianGrid3D(int num_x, int num_y, int num_z, float x_min, float y_min, float z_min, float x_max, float y_max, float z_max)
Calls PbRegularCartesianGrid3D(num_x, num_y, num_z, x_min, y_min, z_min, x_max, y_max, z_max, true).
-
PbRegularCartesianGrid3D
public PbRegularCartesianGrid3D(PbRegularCartesianGrid3D mesh)
Copy constructor.
-
PbRegularCartesianGrid3D
public PbRegularCartesianGrid3D(boolean isDataDuplicate)
Constructor of a default simple mesh. See alsoPbMesh
for more explanations about data duplication.
-
PbRegularCartesianGrid3D
public PbRegularCartesianGrid3D(int num_x, int num_y, int num_z, float x_min, float y_min, float z_min, float x_max, float y_max, float z_max, boolean isDataDuplicate)
Constructor of a 3D regular grid mesh. See alsoPbMesh
for more explanations about data duplication.
-
-