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.InventorInventor.ConstructorCommand
 
- 
 - 
Field Summary- 
Fields inherited from class com.openinventor.inventor.InventorVERBOSE_LEVEL, ZeroHandle
 
- 
 - 
Constructor SummaryConstructors Constructor Description SbStructuredQuadrilateralMesh(long numCellsI, long numCellsJ)Constructor requiring the mesh number of cells in row and column.
 - 
Method SummaryAll 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.InventorgetNativeResourceHandle
 
- 
 
- 
- 
- 
Method Detail- 
isDisposablepublic 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 interface- SafeDisposable
- Returns:
- trueif the object can be disposed in a safe manner
 
 - 
disposepublic 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 interface- SafeDisposable
- Overrides:
- disposein class- Inventor
- Returns:
- trueif this object native resources were successfully disposed;- falseif it was already disposed or no native resources has been registered for this object.
 
 - 
getNumCellsJpublic long getNumCellsJ() Returns the mesh number of cell by column.
 - 
setVertexpublic 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.
 
 - 
getVertexpublic 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()].
 
 - 
getNumCellsIpublic long getNumCellsI() Returns the mesh number of cell by row.
 
- 
 
-