Structured quadrilateral mesh.
More...
#include <ImageViz/SbStructuredQuadrilateralMesh.h>
Inheritance diagram for SbStructuredQuadrilateralMesh:Public Member Functions | |
| SbStructuredQuadrilateralMesh (size_t numCellsI, size_t numCellsJ) | |
| Constructor requiring the mesh number of cells in row and column. | |
| virtual | ~SbStructuredQuadrilateralMesh () |
| Destructor. | |
| size_t | getNumCellsI () const |
| Returns the mesh number of cell by row. | |
| size_t | getNumCellsJ () const |
| Returns the mesh number of cell by column. | |
| void | setVertex (size_t i, size_t j, SbVec3f vertex) |
| Sets the position of a vertex. | |
| SbVec3f | getVertex (size_t i, size_t j) const |
| Returns the vertex position. | |
Public Member Functions inherited from SoRefCounter | |
| void | ref () const |
| Adds a reference to an instance. | |
| void | unref () const |
| Removes a reference from an instance. | |
| void | unrefNoDelete () const |
| unrefNoDelete() should be called when it is desired to decrement the reference count, but not delete the instance if this brings the reference count to zero. | |
| int | getRefCount () const |
| Returns current reference count. | |
| void | lock () const |
| lock this instance. | |
| void | unlock () const |
| unlock this instance. | |
Friends | |
| class | SoSurfaceUnfoldingProcessing3dImpl |
| class | SoQuadrilateralMeshSlicerApproximation3dImpl |
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
Definition at line 49 of file SbStructuredQuadrilateralMesh.h.
| SbStructuredQuadrilateralMesh::SbStructuredQuadrilateralMesh | ( | size_t | numCellsI, |
| size_t | numCellsJ | ||
| ) |
Constructor requiring the mesh number of cells in row and column.
|
virtual |
Destructor.
| size_t SbStructuredQuadrilateralMesh::getNumCellsI | ( | ) | const |
Returns the mesh number of cell by row.
| size_t SbStructuredQuadrilateralMesh::getNumCellsJ | ( | ) | const |
Returns the mesh number of cell by column.
| SbVec3f SbStructuredQuadrilateralMesh::getVertex | ( | size_t | i, |
| size_t | j | ||
| ) | const |
Returns the vertex position.
Returns an empty vertex if the indices are out of the mesh range.
| 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()]. |
| void SbStructuredQuadrilateralMesh::setVertex | ( | size_t | i, |
| size_t | j, | ||
| SbVec3f | vertex | ||
| ) |
Sets the position of a vertex.
Throws an error if the indices are out of the mesh range.
| 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. |
|
friend |
Definition at line 91 of file SbStructuredQuadrilateralMesh.h.
|
friend |
Definition at line 90 of file SbStructuredQuadrilateralMesh.h.