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
public class PbMesh2D extends PbMesh
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 classPbGrid2D
) or irregular (see derived classPbIndexedMesh2D
).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PbMesh2D.ExtrapolationMethods
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVecsSet(int set_index, SbVec2f[] val)
Calls addVecsSet(set_index, val, "").void
addVecsSet(int set_index, SbVec2f[] val, java.lang.String setName)
Adds a set of 2D vectors on the mesh.SbBox2f
get2DBoundingBox()
Gets the 2D mesh's bounding box.PbMesh2D
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 Detail
-
addVecsSet
public void addVecsSet(int set_index, SbVec2f[] val)
Calls addVecsSet(set_index, val, "").
-
addVecsSet
public void addVecsSet(int set_index, SbVec2f[] val, java.lang.String setName)
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
public PbMesh2D 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())
-
get2DBoundingBox
public SbBox2f get2DBoundingBox()
Gets the 2D mesh's bounding box.
-
-