Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SbStructuredQuadrilateralMesh Class Reference

ImageViz 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
 

Detailed Description

ImageViz 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.

SEE ALSO

SoSFStructuredQuadrilateralMesh

Definition at line 49 of file SbStructuredQuadrilateralMesh.h.

Constructor & Destructor Documentation

◆ SbStructuredQuadrilateralMesh()

SbStructuredQuadrilateralMesh::SbStructuredQuadrilateralMesh ( size_t  numCellsI,
size_t  numCellsJ 
)

Constructor requiring the mesh number of cells in row and column.

◆ ~SbStructuredQuadrilateralMesh()

virtual SbStructuredQuadrilateralMesh::~SbStructuredQuadrilateralMesh ( )
virtual

Destructor.

Member Function Documentation

◆ getNumCellsI()

size_t SbStructuredQuadrilateralMesh::getNumCellsI ( ) const

Returns the mesh number of cell by row.

◆ getNumCellsJ()

size_t SbStructuredQuadrilateralMesh::getNumCellsJ ( ) const

Returns the mesh number of cell by column.

◆ getVertex()

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.

Parameters
icolumn index of the vertex to modify. i must be in range [0-getNumCellsI()].
jrow index of the vertex to modify. j must be in range [0-getNumCellsJ()].

◆ setVertex()

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.

Parameters
icolumn index of the vertex to modify. i must be in range [0-getNumCellsI()].
jrow index of the vertex to modify. j must be in range [0-getNumCellsJ()].
vertexnew value.

Friends And Related Symbol Documentation

◆ SoQuadrilateralMeshSlicerApproximation3dImpl

friend class SoQuadrilateralMeshSlicerApproximation3dImpl
friend

Definition at line 91 of file SbStructuredQuadrilateralMesh.h.

◆ SoSurfaceUnfoldingProcessing3dImpl

friend class SoSurfaceUnfoldingProcessing3dImpl
friend

Definition at line 90 of file SbStructuredQuadrilateralMesh.h.


The documentation for this class was generated from the following file: