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 boolean
dispose()
Explicitly call this method to force object to dispose its unmanaged resources.long
getNumCellsI()
Returns the mesh number of cell by row.long
getNumCellsJ()
Returns the mesh number of cell by column.SbVec3f
getVertex(long i, long j)
Returns the vertex position.boolean
isDisposable()
Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()
on the object.void
setVertex(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:SafeDisposable
Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()
on the object.- Specified by:
isDisposable
in interfaceSafeDisposable
- Returns:
true
if the object can be disposed in a safe manner
-
dispose
public boolean dispose()
Description copied from class:Inventor
Explicitly 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:
dispose
in interfaceSafeDisposable
- Overrides:
dispose
in classInventor
- Returns:
true
if this object native resources were successfully disposed;false
if 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.
-
-