Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
PbQuadrangleCell Class Reference

MeshViz Defines a quadrangle cell of a surface mesh. More...

#include <MeshViz/3Ddata/PbQuadrangleCell.h>

+ Inheritance diagram for PbQuadrangleCell:

Public Member Functions

 PbQuadrangleCell (const PbMesh *owner_mesh)
 Constructor of a default simple cell.
 
 PbQuadrangleCell (const PbQuadrangleCell &cell)
 Copy constructor.
 
 ~PbQuadrangleCell ()
 Destructor.
 
PbQuadrangleCelloperator= (const PbQuadrangleCell &cell)
 Assignment operator.
 
virtual float getLongestEdgeLength () const
 Gets the length of the longest edge of the cell.
 
virtual float getVolume () const
 Returns always 0.
 
virtual float getArea () const
 Gets the area of a cell.
 
virtual void getNodesIndexOfEdge (int edge, PbArrayOfInt &nodes_index) const
 Gets the array of 2 index mesh's nodes that belongs to a given edge of this cell.
 
virtual void getNodesIndexOfFacet (int facet, PbArrayOfInt &nodes_index) const
 Gets the array of index mesh's nodes that belongs to a given facet of this cell.
 
virtual void getNodesLocalIndexOfEdge (int edge, PbArrayOfInt &nodes_index) const
 Gets the array of 2 nodes index that belongs to a given edge of this cell.
 
virtual void getNodesLocalIndexOfFacet (int facet, PbArrayOfInt &nodes_index) const
 Gets the array of node index that belongs to a given facet of this cell.
 
virtual int locatePoint (const SbVec3f &coord, float tolerance, SbVec3f &pcoord) const
 Returns 1 if the point is inside the cell, 0 otherwise.
 
virtual void getWeight (const SbVec3f &pcoord, float *weight) const
 Gets the 4 weights of a point defined by its parametric coordinates.
 
void getDerivs (const SbVec3f &pcoord, float *derivs) const
 Gets the derivs of a point defined by its parametric coordinates.
 
- Public Member Functions inherited from PbCell
 PbCell ()
 Constructor.
 
 PbCell (const PbCell &cell)
 Copy constructor.
 
 ~PbCell ()
 Destructor.
 
PbCelloperator= (const PbCell &cell)
 Assignment operator.
 
virtual SbBox3f getBoundingBox () const
 Gets the cell's bounding box.
 
virtual void getBounds (float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax) const
 Gets the cell's bounds.
 
virtual SbVec3f getCenter () const
 Gets the cell's geometric center.
 
int getNumFacets () const
 Gets the number of facets.
 
int getNumEdges () const
 Gets the number of edges.
 
int getNumNodes () const
 Gets the number of nodes.
 
int getIndex () const
 Gets the index of the cell in the mesh.
 
SbVec3f getNodeCoord (int nod) const
 Gets the coordinate of the nod (nod must be >=0 and < getNumNodes()).
 
int getNodeIndex (int nod) const
 Gets the index (in the mesh) of a nod (nod must be >=0 and < getNumNodes()).
 
void getNodesIndex (PbArrayOfInt &nodes_index) const
 Gets the array of index mesh's nodes that belongs to this cell.
 
virtual float getValue (const SbVec3f &pcoord, const float *s) const
 Get the scalar value of a point in the cell.
 
virtual SbVec3f getValue (const SbVec3f &pcoord, const SbVec3f *v) const
 Get the vector value of a point in the cell.
 
float getValue (const float *weight, const float *s) const
 Gets the scalar value of a point in this cell, given the point's weights.
 
SbVec3f getValue (const float *weight, const SbVec3f *v) const
 Gets the vector value of a point in this cell, given the point's weights.
 
- Public Member Functions inherited from PbBase
void enableConnection (SbBool flag)
 Activates/deactivates the mechanism of connection.
 
SbBool isConnectionEnabled () const
 Returns TRUE if the connection mechanism is active, otherwise FALSE.
 
void touch ()
 Simulates the changing of an instance of this object, so all connected objects are informed of this change.
 
PbBaseoperator= (const PbBase &base)
 Assignment operator.
 

Detailed Description

MeshViz Defines a quadrangle cell of a surface mesh.

A quadrangle cell is not necessarily a square, it can be a rectangle or a lozenge.

Nodes and edges are numbered as following :

             3-----------2   edge 0 = 01
             |           |   edge 1 = 12
             |           |   edge 2 = 23
             |           |   edge 3 = 30
             |           |
             |           |
             0-----------1

Definition at line 53 of file PbQuadrangleCell.h.

Constructor & Destructor Documentation

◆ PbQuadrangleCell() [1/2]

PbQuadrangleCell::PbQuadrangleCell ( const PbMesh owner_mesh)

Constructor of a default simple cell.

◆ PbQuadrangleCell() [2/2]

PbQuadrangleCell::PbQuadrangleCell ( const PbQuadrangleCell cell)

Copy constructor.

◆ ~PbQuadrangleCell()

PbQuadrangleCell::~PbQuadrangleCell ( )

Destructor.

Member Function Documentation

◆ getArea()

virtual float PbQuadrangleCell::getArea ( ) const
virtual

Gets the area of a cell.

Implements PbCell.

◆ getDerivs()

void PbQuadrangleCell::getDerivs ( const SbVec3f pcoord,
float *  derivs 
) const

Gets the derivs of a point defined by its parametric coordinates.

◆ getLongestEdgeLength()

virtual float PbQuadrangleCell::getLongestEdgeLength ( ) const
virtual

Gets the length of the longest edge of the cell.

Implements PbCell.

◆ getNodesIndexOfEdge()

virtual void PbQuadrangleCell::getNodesIndexOfEdge ( int  edge,
PbArrayOfInt nodes_index 
) const
virtual

Gets the array of 2 index mesh's nodes that belongs to a given edge of this cell.

(edge must be >=0 and < 4)

Implements PbCell.

◆ getNodesIndexOfFacet()

virtual void PbQuadrangleCell::getNodesIndexOfFacet ( int  facet,
PbArrayOfInt nodes_index 
) const
virtual

Gets the array of index mesh's nodes that belongs to a given facet of this cell.

(facet must be == 0).

Implements PbCell.

◆ getNodesLocalIndexOfEdge()

virtual void PbQuadrangleCell::getNodesLocalIndexOfEdge ( int  edge,
PbArrayOfInt nodes_index 
) const
virtual

Gets the array of 2 nodes index that belongs to a given edge of this cell.

edge must be >=0 and < 4. Each index is >=0 and < 4

Implements PbCell.

◆ getNodesLocalIndexOfFacet()

virtual void PbQuadrangleCell::getNodesLocalIndexOfFacet ( int  facet,
PbArrayOfInt nodes_index 
) const
virtual

Gets the array of node index that belongs to a given facet of this cell.

facet must be == 0. Each index is >=0 and < 4.

Implements PbCell.

◆ getVolume()

virtual float PbQuadrangleCell::getVolume ( ) const
inlinevirtual

Returns always 0.

Implements PbCell.

Definition at line 86 of file PbQuadrangleCell.h.

◆ getWeight()

virtual void PbQuadrangleCell::getWeight ( const SbVec3f pcoord,
float *  weight 
) const
virtual

Gets the 4 weights of a point defined by its parametric coordinates.

Implements PbCell.

◆ locatePoint()

virtual int PbQuadrangleCell::locatePoint ( const SbVec3f coord,
float  tolerance,
SbVec3f pcoord 
) const
virtual

Returns 1 if the point is inside the cell, 0 otherwise.

Gets also the parametric coordinate of the point and its weights

Implements PbCell.

◆ operator=()

PbQuadrangleCell & PbQuadrangleCell::operator= ( const PbQuadrangleCell cell)

Assignment operator.


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