Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
MxLineCellExtract Class Reference

MeshViz 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.
 

Detailed Description

MeshViz Utility class for line cells.

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.

Member Function Documentation

◆ getLength()

static double MxLineCellExtract::getLength ( const MiGeometryI meshGeometry,
const MiLineCell cell 
)
static

Gets the length of the given line.

◆ isPointInsideCell()

static bool MxLineCellExtract::isPointInsideCell ( const MiGeometryI meshGeometry,
const MiLineCell lineCell,
const MbVec3d point,
std::vector< double > &  weights 
)
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.

Parameters
[in]meshGeometryThe geometry of the mesh.
[in]lineCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.
[out]weightsThis 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())
Returns
true if the point is inside the cell.

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