Build a polygonal cell.
More...
#include <MeshVizXLM/mesh/cell/MbPolygonCell.h>
Public Member Functions | |
template<typename _NodeIdIter > | |
MbPolygonCell (_NodeIdIter beginId, _NodeIdIter endId) | |
double | getArea (const MiGeometryI *meshGeometry) const |
virtual size_t | getNumEdges () const |
virtual size_t | getNumNodes () const |
virtual size_t | getNodeIndex (size_t nod) const |
virtual bool | isPointInsideCell (const MiGeometryI &meshGeometry, const MbVec3d &point, std::vector< double > &weights) const |
virtual double | getRelativeSize (const MiGeometryI *meshGeometry) const |
MbPolygonCell::MbPolygonCell | ( | _NodeIdIter | beginId, | |
_NodeIdIter | endId | |||
) | [inline] |
Construct a polygon defined by its list of indices.
double MbPolygonCell::getArea | ( | const MiGeometryI * | meshGeometry | ) | const [inline] |
Gets the surface of the polygon.
size_t MbPolygonCell::getNodeIndex | ( | size_t | node | ) | const [inline, virtual] |
Gets the index (in the mesh) of a node.
[in] | node | Node number (where: 0 <= node < getNumNodes()). |
Implements MiCell.
size_t MbPolygonCell::getNumEdges | ( | ) | const [inline, virtual] |
Gets the number of edges.
size_t MbPolygonCell::getNumNodes | ( | ) | const [inline, virtual] |
Gets the number of nodes.
Implements MiCell.
double MbPolygonCell::getRelativeSize | ( | const MiGeometryI * | meshGeometry | ) | const [inline, virtual] |
Gets the relative size of the cell.
Reimplemented from MiCell.
bool MbPolygonCell::isPointInsideCell | ( | const MiGeometryI & | meshGeometry, | |
const MbVec3d & | point, | |||
std::vector< double > & | weights | |||
) | const [inline, virtual] |
Checks if a point is inside or outside a cell.
Reimplemented from MiCell.