MySurfaceCell Class Reference

MeshViz Unstructured surface mesh template. More...

#include <MeshVizXLM/mesh/templates/MySurfaceMeshUnstructured.h>

Inheritance diagram for MySurfaceCell:
MiSurfaceCell MiCell

List of all members.

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

Detailed Description

MeshViz Unstructured surface mesh template.

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.

Note:
Nonmandatory methods are marked as optional.

For advanced implementations, refer to the MiSurfaceMeshUnstructured interface. Class defining a surface cell of the mesh


Member Function Documentation

size_t MySurfaceCell::getNodeIndex ( size_t  node  )  const [inline, virtual]

Gets the index (in the mesh) of a node.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.
Returns:
True if the point is inside the cell.

Reimplemented from MiCell.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/