Utility class for line cells. More...
#include <MeshVizXLM/extractors/MxLineCellExtract.h>
Static Public Member Functions | |
static bool | isPointInsideCell (const MiGeometryI &meshGeometry, const MiLineCell *lineCell, const MbVec3d &point, std::vector< double > &weights) |
Checks if a point is inside or outside a line cell. | |
static double | getLength (const MiGeometryI &meshGeometry, const MiLineCell *cell) |
Gets the length of the given line. | |
Utility class that provides a static implementation of the MiLineCell's methods in a line cell. This class is provided to make easier the creation of a class in the application that implements the MiLineCell
interface for a line cell.
Definition at line 48 of file MxLineCellExtract.h.
|
static |
Gets the length of the given line.
|
static |
Checks if a point is inside or outside a line cell.
This static method helps to implement the method MiCell::isPointInsideCell(meshGeometry,point,weights) for a line cell.
[in] | meshGeometry | The geometry of the mesh. |
[in] | lineCell | The input cell. |
[in] | point | The input point given in the same space coordinate as meshGeometry. |
[out] | weights | This method computes the values weights[0-NumNodes] if the point is inside the cell. It assumes the weights vector array has been already allocated. Its size must be set to the number of nodes in the cell (at least) before calling this method, using for instance the weights::resize(lineCell->getNumNodes()) |