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

MeshViz Utility class for quadratic quadrangle cells with 8 nodes. More...

#include <MeshVizXLM/extractors/MxQuadrangle8CellExtract.h>

Static Public Member Functions

static MbVec3d getIsoParametricCoord (const MiGeometryI &meshGeometry, const MiSurfaceCell *quadrangleCell, const MbVec3d &point)
 Computes the iso parametric coordinates of the given point in the given cell with the given geometry.
 
static MbVec3d getIsoParametricCoord (size_t nodeIndex)
 Returns the iso parametric coordinates of one of the 8 nodes of a quadrangle cell.
 
static void getWeight (const MiGeometryI &meshGeometry, const MiSurfaceCell *quadrangleCell, const MbVec3d &point, std::vector< double > &weights)
 Gets the weights in the given cell of the given point.
 
static void getWeight (const MbVec3d &ipcoord, std::vector< double > &weights)
 Gets the weights of a point defined by its iso parametric coordinates.
 
static void getDerivs (const MbVec3d &ipcoord, std::vector< double > &derivs)
 Gets the value of the derivatives of the shape functions (aka weights) at the point given by its iso parametric coordinates.
 
static bool isPointInsideCell (const MiGeometryI &meshGeometry, const MiSurfaceCell *quadrangleCell, const MbVec3d &point, std::vector< double > &weights)
 Checks if a point is inside or outside a quadrangle cell.
 
static size_t getSubTriangleNodesIndex (std::vector< size_t > &triangleNodeIds)
 Gets a triangulation of a quadratic quadrangle of 8 nodes.
 

Friends

std::ostream & operator<< (std::ostream &s, const MxQuadrangle8CellExtract &cell)
 

Detailed Description

MeshViz Utility class for quadratic quadrangle cells with 8 nodes.

Utility class that provides a static implementation of the MiSurfaceCell interface methods for a quadratic quadrangle cell of 8 nodes. This class is provided to make it easier to create a class that implements the MiSurfaceCell
interface for a quadratic quadrangle of 8 nodes.

The following image shows the node numbering used by this class. The weights (see getWeight()), and parametric coordinates (see getIsoParametricCoord()) are defined according to this node numbering.

Nodes numbering

Definition at line 57 of file MxQuadrangle8CellExtract.h.

Member Function Documentation

◆ getDerivs()

static void MxQuadrangle8CellExtract::getDerivs ( const MbVec3d ipcoord,
std::vector< double > &  derivs 
)
static

Gets the value of the derivatives of the shape functions (aka weights) at the point given by its iso parametric coordinates.

Parameters
[in]ipcoordThe iso parametric coordinates of the input point. The reference space for the iso parametric coordinates is assumed to be [0-1]. Thus any point inside the cell has iso parametric coordinates in the interval [0-1].
[out]derivsThis method computes the 24 values derivs[0-23].
It assumes the derivs vector array has been already allocated. Its size must be set to 24 (at least) before calling this method, using for instance the derivs::resize(24)

◆ getIsoParametricCoord() [1/2]

static MbVec3d MxQuadrangle8CellExtract::getIsoParametricCoord ( const MiGeometryI meshGeometry,
const MiSurfaceCell quadrangleCell,
const MbVec3d point 
)
static

Computes the iso parametric coordinates of the given point in the given cell with the given geometry.

As computing the iso parametric coordinates of a point needs the coordinates of the cell's nodes, the given quadrangleCell is assumed to contain 8 nodes.

Note
Each node coordinate of the given cell is retrieved in the following way:
 meshGeometry.getCoord(quadrangleCell->getNodeIndex(i)) 
for each i in the range [0-7].
Parameters
[in]meshGeometryThe geometry of the mesh.
[in]quadrangleCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.

◆ getIsoParametricCoord() [2/2]

static MbVec3d MxQuadrangle8CellExtract::getIsoParametricCoord ( size_t  nodeIndex)
inlinestatic

Returns the iso parametric coordinates of one of the 8 nodes of a quadrangle cell.

This static method helps to implement the method MiCell::getIsoParametricCoord().

Parameters
[in]nodeIndexMust be defined in the range [0-7]

Definition at line 81 of file MxQuadrangle8CellExtract.h.

◆ getSubTriangleNodesIndex()

static size_t MxQuadrangle8CellExtract::getSubTriangleNodesIndex ( std::vector< size_t > &  triangleNodeIds)
inlinestatic

Gets a triangulation of a quadratic quadrangle of 8 nodes.

This static method helps to implement the method MiSurfaceCell::getSubTriangleNodesIndex() for a quadratic quadrangle of 8 nodes.

Parameters
[out]triangleNodeIdsSub triangle node ids (where: 0 <= triangleNodeIds[i] < 8 for each i).
Returns
The number of sub triangles in the cell.

Definition at line 167 of file MxQuadrangle8CellExtract.h.

◆ getWeight() [1/2]

static void MxQuadrangle8CellExtract::getWeight ( const MbVec3d ipcoord,
std::vector< double > &  weights 
)
static

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

This static method helps to implement the method MiCell::getWeight(ipcoord,weights) for a quadrangle cell.

Parameters
[in]ipcoordThe iso parametric coordinates of the input point. The reference space for the iso parametric coordinates is assumed to be [0-1]. Thus any point inside the cell has iso parametric coordinates in the interval [0-1].
[out]weightsThis method computes the 8 values weights[0-7].
It assumes the weights vector array has been already allocated. Its size must be set to 8 (at least) before calling this method, using for instance the weights::resize(8)

◆ getWeight() [2/2]

static void MxQuadrangle8CellExtract::getWeight ( const MiGeometryI meshGeometry,
const MiSurfaceCell quadrangleCell,
const MbVec3d point,
std::vector< double > &  weights 
)
inlinestatic

Gets the weights in the given cell of the given point.

This static method helps to implement the method MiCell::getWeight(meshGeometry,point,weights) for a quadrangle cell. As computing the weights of a point needs the coordinates of the cell's nodes, the given quadrangleCell is assumed to contain 8 nodes.

Note
Each node coordinate of the given cell is retrieved in the following way:
 meshGeometry.getCoord(quadrangleCell->getNodeIndex(i)) 
for each i in the range [0-7].
Parameters
[in]meshGeometryThe geometry of the mesh.
[in]quadrangleCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.
[out]weightsThis method computes the 8 values weights[0-7]. It assumes the weights vector array has been already allocated. Its size must be set to 8 (at least) before calling this method, using for instance the weights.resize(8)

Definition at line 105 of file MxQuadrangle8CellExtract.h.

◆ isPointInsideCell()

static bool MxQuadrangle8CellExtract::isPointInsideCell ( const MiGeometryI meshGeometry,
const MiSurfaceCell quadrangleCell,
const MbVec3d point,
std::vector< double > &  weights 
)
inlinestatic

Checks if a point is inside or outside a quadrangle cell.

This static method helps to implement the method MiCell::isPointInsideCell(meshGeometry,point,weights) for a quadrangle cell.

Parameters
[in]meshGeometryThe geometry of the mesh.
[in]quadrangleCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.
[out]weightsThis method computes the 8 values weights[0-7] if the point is inside the cell. It assumes the weights vector array has been already allocated. Its size must be set to 8 (at least) before calling this method, using for instance the weights::resize(8)
Returns
true if the point is inside the cell.

Definition at line 150 of file MxQuadrangle8CellExtract.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  s,
const MxQuadrangle8CellExtract cell 
)
friend

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