MiLineCell Class Reference
[Cell]

MeshViz Defines an abstract cell of a line mesh. More...

#include <MeshVizXLM/mesh/cell/MiLineCell.h>

Inheritance diagram for MiLineCell:
MiCell MeXLineCell

List of all members.

Public Member Functions

virtual size_t getSubEdgeNodesIndex (std::vector< size_t > &edgeNodeIds) const

Detailed Description

MeshViz Defines an abstract cell of a line mesh.

A line cell is an edge element that connects adjacent nodes of a line mesh. This class defines the method getSubEdgeNodesIndex() that is only useful for non linear 1D cells. For linear 1D cells, the application must just provide the implementation of the methods defined in MiCell without overriding getSubEdgeNodesIndex().

When the result of getSubEdgeNodesIndex() is > 0, the cell is considered as a non linear cell. In that case, the given sub segments are used by the miscellaneous extractors (for instance MiTessellatedLineExtract). Furthermore if a MiTessellator is given, each sub segment is tessellated by the method MiTessellator::tessellateLineCell().

See also:
MiTessellator, MbLineCell, MeXLineCell
See related examples:

MyLineMeshUnstructured


Member Function Documentation

virtual size_t MiLineCell::getSubEdgeNodesIndex ( std::vector< size_t > &  edgeNodeIds  )  const [inline, virtual]

Get a decomposition of this cell into sub linear segments.


This method must be overridden to correctly handle non-linear cells. For instance an implementation of this method for a quadratic bar like the following one

QuadraticBar3.png

Quadratic bar

should return 2, and edgeNodeIds = {0,2,2,1}. (provided that getNodeIndex(2) corresponds to the middle point of this bar).

By default it returns 0 and the argument edgeNodeIds is not modified.

Parameters:
[out] edgeNodeIds sub edge node id (where: 0 <= edgeNodeIds[i] < getNumNodes() for each i).
Returns:
the number of sub linear segments in this 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/