Package com.openinventor.meshviz.data
Class PbMesh2D
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.meshviz.graph.PbBase
com.openinventor.meshviz.data.PbMesh
com.openinventor.meshviz.data.PbMesh2D
- Direct Known Subclasses:
PbGrid2D
,PbIndexedMesh2D
Defines an abstract surface mesh.
A surface mesh is made of polygonal cells that define a 2D or 3D surface. The topology of this mesh is either regular (see derived class
PbGrid2D
) or irregular (see derived class PbIndexedMesh2D
).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Specifies the type of extrapolation used by getFaultMesh() when computing values on the fault lines.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVecsSet
(int set_index, SbVec2f[] val) Calls addVecsSet(set_index, val, "").void
addVecsSet
(int set_index, SbVec2f[] val, String setName) Adds a set of 2D vectors on the mesh.Gets the 2D mesh's bounding box.getFaultMesh
(int num_fault_lines, int[] fault_line_sizes, SbVec3f[] coord) Same as calling getFaultMesh(num_fault_lines, fault_line_sizes, coord,PbMesh2D.USE_ADJACENT_DERIVS, PbDefinedValue())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
-
Method Details
-
addVecsSet
Calls addVecsSet(set_index, val, ""). -
addVecsSet
Adds a set of 2D vectors on the mesh. set_index is the index of the set. Note that even if theisDataDuplicated
field is false, this set of 2D vectors is always duplicated in aPbMesh2D
object. If you do not want to duplicate your vectors set, you must set is_data_duplicated to false in your mesh constructor and use the methodPbMesh.addVecsSet()
. -
getFaultMesh
Same as calling getFaultMesh(num_fault_lines, fault_line_sizes, coord,PbMesh2D.USE_ADJACENT_DERIVS, PbDefinedValue()) -
get2DBoundingBox
Gets the 2D mesh's bounding box.
-