Unstructured surface mesh template.
More...
#include <MeshVizXLM/mesh/templates/MySurfaceMeshUnstructured.h>
Public Member Functions | |
size_t | getNumNodes () const |
size_t | getNodeIndex (size_t node) const |
double | getRelativeSize (const MiGeometryI *meshGeometry) const |
bool | isPointInsideCell (const MiGeometryI &meshGeometry, const MbVec3d &point, std::vector< double > &weights) const |
Header file to be completed including all required classes to define an unstructured surface mesh with its associated scalar and vector sets.
Intended to help implement simple mesh. Just fill up the empty methods of the following classes (search for YOUR CODE HERE):
Hint: some should inherit both from MeshViz interfaces and the user's application data classes.
For advanced implementations, refer to the MiSurfaceMeshUnstructured interface. Class defining a surface cell of the mesh
size_t MySurfaceCell::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 MySurfaceCell::getNumNodes | ( | ) | const [inline, virtual] |
Gets the number of nodes.
Implements MiCell.
double MySurfaceCell::getRelativeSize | ( | const MiGeometryI * | meshGeometry | ) | const [inline, virtual] |
Gets the relative size of the cell.
[in] | meshGeometry | the geometry of the mesh. Used to retrieve the node coordinates of this cell. |
Reimplemented from MiCell.
bool MySurfaceCell::isPointInsideCell | ( | const MiGeometryI & | meshGeometry, | |
const MbVec3d & | point, | |||
std::vector< double > & | weights | |||
) | const [inline, virtual] |
Checks if a point is inside or outside a cell.
[in] | meshGeometry | The geometry of the mesh. Used to retrieve the node coordinates of this cell. |
[in] | point | The point to be checked. |
[out] | weights | containing at least as many elements as the number of nodes in this cell. |
Reimplemented from MiCell.