Package com.openinventor.imageviz
Class SbStructuredQuadrilateralMesh
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.imageviz.SbStructuredQuadrilateralMesh
-
- All Implemented Interfaces:
SafeDisposable
public class SbStructuredQuadrilateralMesh extends Inventor implements SafeDisposable
Structured quadrilateral mesh. Its nodes are ordered and can be accessed by i, j indices. All cells are quadrilateral.Defines a list of 3d vertices that can be accessed by (i,j) indices.
SoSFStructuredQuadrilateralMesh
-
-
Nested Class Summary
-
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 SbStructuredQuadrilateralMesh(long numCellsI, long numCellsJ)Constructor requiring the mesh number of cells in row and column.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandispose()Explicitly call this method to force object to dispose its unmanaged resources.longgetNumCellsI()Returns the mesh number of cell by row.longgetNumCellsJ()Returns the mesh number of cell by column.SbVec3fgetVertex(long i, long j)Returns the vertex position.booleanisDisposable()Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.voidsetVertex(long i, long j, SbVec3f vertex)Sets the position of a vertex.-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Method Detail
-
isDisposable
public boolean isDisposable()
Description copied from interface:SafeDisposableReturns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.- Specified by:
isDisposablein interfaceSafeDisposable- Returns:
trueif the object can be disposed in a safe manner
-
dispose
public boolean dispose()
Description copied from class:InventorExplicitly call this method to force object to dispose its unmanaged resources. The object may not be reused in the application code after this call.- Specified by:
disposein interfaceSafeDisposable- Overrides:
disposein classInventor- Returns:
trueif this object native resources were successfully disposed;falseif it was already disposed or no native resources has been registered for this object.
-
getNumCellsJ
public long getNumCellsJ()
Returns the mesh number of cell by column.
-
setVertex
public void setVertex(long i, long j, SbVec3f vertex)Sets the position of a vertex. Throws an error if the indices are out of the mesh range.- Parameters:
i- column index of the vertex to modify. i must be in range [0-getNumCellsI()].j- row index of the vertex to modify. j must be in range [0-getNumCellsJ()].vertex- new value.
-
getVertex
public SbVec3f getVertex(long i, long j)
Returns the vertex position. Returns an empty vertex if the indices are out of the mesh range.- Parameters:
i- column index of the vertex to modify. i must be in range [0-getNumCellsI()].j- row index of the vertex to modify. j must be in range [0-getNumCellsJ()].
-
getNumCellsI
public long getNumCellsI()
Returns the mesh number of cell by row.
-
-