MxLineCellExtract Class Reference
[Cell]

MeshViz Utility class for line cells. More...

#include <MeshVizXLM/extractors/MxLineCellExtract.h>

List of all members.

Static Public Member Functions

static bool isPointInsideCell (const MiGeometryI &meshGeometry, const MiLineCell *lineCell, const MbVec3d &point, std::vector< double > &weights)
static double getLength (const MiGeometryI &meshGeometry, const MiLineCell *cell)

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.


Member Function Documentation

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

Gets the length of the given line.

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] 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())
Returns:
true if the point is inside the cell.

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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/