Structured quadrilateral mesh. More...
#include <ImageViz/SbStructuredQuadrilateralMesh.h>
Public Member Functions | |
SbStructuredQuadrilateralMesh (size_t numCellsI, size_t numCellsJ) | |
virtual | ~SbStructuredQuadrilateralMesh () |
size_t | getNumCellsI () const |
size_t | getNumCellsJ () const |
void | setVertex (size_t i, size_t j, SbVec3f vertex) |
SbVec3f | getVertex (size_t i, size_t j) const |
Friends | |
class | SoSurfaceUnfoldingProcessing3dImpl |
class | SoQuadrilateralMeshSlicerApproximation3dImpl |
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
SbStructuredQuadrilateralMesh::SbStructuredQuadrilateralMesh | ( | size_t | numCellsI, | |
size_t | numCellsJ | |||
) |
Constructor requiring the mesh number of cells in row and column.
virtual SbStructuredQuadrilateralMesh::~SbStructuredQuadrilateralMesh | ( | ) | [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 class SoQuadrilateralMeshSlicerApproximation3dImpl [friend] |
friend class SoSurfaceUnfoldingProcessing3dImpl [friend] |