Version: 9.12.0
SMDS_MeshCell Class Reference

Base class for all cells. More...

#include <SMDS_MeshCell.hxx>

Inheritance diagram for SMDS_MeshCell:

Public Types

typedef SMDS_StdIterator< const SMDS_MeshNode *, SMDS_NodeIteratorPtriterator
 

Public Member Functions

virtual int NbEdges () const
 
virtual int NbFaces () const
 
virtual int NbNodes () const
 Return The number of nodes owned by the current element. More...
 
virtual int NbCornerNodes () const
 
virtual bool ChangeNodes (const SMDS_MeshNode *nodes[], const int nbNodes)
 
virtual int GetNodeIndex (const SMDS_MeshNode *node) const
 Check if a node belongs to the element. More...
 
virtual const SMDS_MeshNodeGetNode (const int ind) const
 Return node by its index. More...
 
virtual SMDSAbs_ElementType GetType () const
 
virtual SMDSAbs_EntityType GetEntityType () const
 
virtual SMDSAbs_GeometryType GetGeomType () const
 
virtual VTKCellType GetVtkType () const
 
virtual bool IsPoly () const
 
virtual bool IsQuadratic () const
 
virtual SMDS_ElemIteratorPtr nodesIterator () const
 Create an iterator which iterate on nodes owned by the element. More...
 
virtual SMDS_NodeIteratorPtr nodeIterator () const
 Create an iterator which iterate on nodes owned by the element. More...
 
virtual SMDS_NodeIteratorPtr interlacedNodesIterator () const
 
virtual SMDS_NodeIteratorPtr nodesIteratorToUNV () const
 
iterator begin_nodes () const
 
iterator end_nodes () const
 
virtual bool IsMediumNode (const SMDS_MeshNode *node) const
 Check if a node is a medium node of a quadratic cell. More...
 
const SMDS_MeshNodeGetNodeWrap (const int ind) const
 Return node by its index. More...
 
virtual bool IsValidIndex (const int ind) const
 Return true if index of node is valid (0 <= ind < NbNodes()) More...
 
int WrappedIndex (const int ind) const
 Return a valid corner node index, fixing the given one if necessary. More...
 
virtual smIdType GetID () const
 Return ID of an element. More...
 
virtual vtkIdType GetVtkID () const
 Return VTK ID of this element. More...
 
virtual int getshapeId () const
 
virtual int GetShapeID () const
 Return ID of a shape this element was generated on. More...
 
virtual void setIsMarked (bool is) const
 Mark this element. More...
 
virtual bool isMarked () const
 Check if this element is marked. More...
 
bool IsNull () const
 
SMDS_MeshGetMesh () const
 Return the mesh this element belongs to. More...
 
void Print (std::ostream &OS) const
 Print self. More...
 

Static Public Member Functions

static void InitStaticMembers ()
 
static VTKCellType toVtkType (SMDSAbs_EntityType entityType)
 Return VTKCellType corresponding to SMDSAbs_EntityType. More...
 
static SMDSAbs_EntityType toSmdsType (VTKCellType vtkType)
 Return SMDSAbs_EntityType corresponding to VTKCellType. More...
 
static SMDSAbs_ElementType ElemType (SMDSAbs_GeometryType geomType)
 Return SMDSAbs_ElementType by SMDSAbs_GeometryType. More...
 
static SMDSAbs_ElementType ElemType (SMDSAbs_EntityType entityType)
 Return SMDSAbs_ElementType by SMDSAbs_EntityType. More...
 
static SMDSAbs_GeometryType GeomType (SMDSAbs_EntityType entityType)
 
static bool IsPoly (SMDSAbs_EntityType entityType)
 
static bool IsQuadratic (SMDSAbs_EntityType entityType)
 
static int NbCornerNodes (SMDSAbs_EntityType entityType)
 
static int NbNodes (SMDSAbs_EntityType entityType)
 
static int NbEdges (SMDSAbs_EntityType entityType)
 
static int NbFaces (SMDSAbs_EntityType entityType)
 
static const std::vector< int > & toVtkOrder (VTKCellType vtkType)
 Return indices to transform cell connectivity from SMDS to VTK Usage: vtkIDs[i] = smdsIDs[ indices[ i ]]. More...
 
static const std::vector< int > & toVtkOrder (SMDSAbs_EntityType smdsType)
 Return indices to transform cell connectivity from SMDS to VTK Usage: vtkIDs[i] = smdsIDs[ indices[ i ]]. More...
 
static const std::vector< int > & fromVtkOrder (VTKCellType vtkType)
 Return indices to transform cell connectivity from VTK to SMDS Usage: smdsIDs[i] = vtkIDs[ indices[ i ]]. More...
 
static const std::vector< int > & fromVtkOrder (SMDSAbs_EntityType smdsType)
 Return indices to transform cell connectivity from VTK to SMDS Usage: smdsIDs[i] = vtkIDs[ indices[ i ]]. More...
 
static const std::vector< int > & reverseSmdsOrder (SMDSAbs_EntityType smdsType, const size_t nbNodes=0)
 Return indices to reverse an SMDS cell of given type. More...
 
static const std::vector< int > & interlacedSmdsOrder (SMDSAbs_EntityType smdsType, const size_t nbNodes=0)
 Return indices to set nodes of a quadratic 1D or 2D element in interlaced order Usage: interlacedIDs[i] = smdsIDs[ indices[ i ]]. More...
 
template<class VECT >
static void applyInterlace (const std::vector< int > &interlace, VECT &data)
 
template<class VECT >
static void applyInterlaceRev (const std::vector< int > &interlace, VECT &data)
 

Protected Member Functions

void init (SMDSAbs_EntityType entityType, int nbNodes,...)
 
void init (SMDSAbs_EntityType entityType, const std::vector< const SMDS_MeshNode * > &nodes)
 
void init (SMDSAbs_EntityType entityType, const std::vector< vtkIdType > &vtkNodeIds)
 
void setVtkID (const vtkIdType vtkID)
 Store VTK ID. More...
 
virtual void setShapeID (const int shapeID) const
 Set ID of a shape this element was generated on. More...
 
SMDS_UnstructuredGridgetGrid () const
 Return a SMDS_UnstructuredGrid. More...
 

Protected Attributes

SMDS_ElementChunkmyHolder
 

Friends

class SMDS_Mesh
 

Detailed Description

Base class for all cells.

Member Typedef Documentation

◆ iterator

Member Function Documentation

◆ applyInterlace()

◆ applyInterlaceRev()

template<class VECT >
static void SMDS_MeshCell::applyInterlaceRev ( const std::vector< int > &  interlace,
VECT &  data 
)
static

◆ begin_nodes()

◆ ChangeNodes()

bool SMDS_MeshCell::ChangeNodes ( const SMDS_MeshNode nodes[],
const int  nbNodes 
)
virtual

◆ ElemType() [1/2]

SMDSAbs_ElementType SMDS_MeshCell::ElemType ( SMDSAbs_EntityType  entityType)
static

Return SMDSAbs_ElementType by SMDSAbs_EntityType.

◆ ElemType() [2/2]

◆ end_nodes()

◆ fromVtkOrder() [1/2]

const std::vector< int > & SMDS_MeshCell::fromVtkOrder ( SMDSAbs_EntityType  smdsType)
static

Return indices to transform cell connectivity from VTK to SMDS Usage: smdsIDs[i] = vtkIDs[ indices[ i ]].

◆ fromVtkOrder() [2/2]

const std::vector< int > & SMDS_MeshCell::fromVtkOrder ( VTKCellType  vtkType)
static

Return indices to transform cell connectivity from VTK to SMDS Usage: smdsIDs[i] = vtkIDs[ indices[ i ]].

References toSmdsType().

Referenced by _GetVtkNodes::_GetVtkNodes(), and GetNode().

◆ GeomType()

SMDSAbs_GeometryType SMDS_MeshCell::GeomType ( SMDSAbs_EntityType  entityType)
static

◆ GetEntityType()

◆ GetGeomType()

SMDSAbs_GeometryType SMDS_MeshCell::GetGeomType ( ) const
virtual

Implements SMDS_MeshElement.

Reimplemented in SMDS_MeshEdge.

References GetVtkType().

◆ getGrid()

◆ GetID()

smIdType SMDS_MeshElement::GetID ( ) const
virtualinherited

Return ID of an element.

Reimplemented in SMDS_CellOfNodes.

References SMDS_ElementChunk::GetID(), and SMDS_MeshElement::myHolder.

Referenced by SMESH_Gen_i::_GetInside(), SMESHDS_SubMesh::add(), SMESHDS_Mesh::Add0DElement(), SMESH_MeshEditor_i::Add0DElement(), SMESHDS_Mesh::Add0DElementWithID(), SMESHDS_Mesh::AddBall(), SMESH_MeshEditor_i::AddBall(), SMESHDS_Mesh::AddBallWithID(), SMESHDS_Mesh::AddEdge(), SMESH_MeshEditor_i::AddEdge(), SMESHDS_Mesh::AddEdgeWithID(), SMESHDS_Mesh::AddFace(), SMESH_MeshEditor_i::AddFace(), SMESHDS_Mesh::AddFaceWithID(), SMESH_MeshEditor_i::AddNode(), SMESHDS_Mesh::AddNode(), SMESHDS_Mesh::AddNodeWithID(), SMESH_MeshEditor_i::AddPolygonalFace(), SMESHDS_Mesh::AddPolygonalFace(), SMESH_MeshEditor_i::AddPolyhedralVolume(), SMESHDS_Mesh::AddPolyhedralVolume(), SMESH_MeshEditor_i::AddPolyhedralVolumeByFaces(), SMESH_MeshEditor_i::AddQuadPolygonalFace(), SMESHDS_Mesh::AddQuadPolygonalFace(), SMESHDS_Mesh::AddVolume(), SMESH_MeshEditor_i::AddVolume(), SMESHDS_Mesh::AddVolumeWithID(), SMESH_MeshEditor_i::AffectedElemGroupsInRegion(), SMESH_VisualObjDef::buildElemPrs(), SMESHDS_Mesh::ChangeElementNodes(), SMESHDS_Mesh::ChangePolyhedronNodes(), SMESHGUI_CreatePolyhedralVolumeDlg::checkEditLine(), SMESH_MesherHelper::CheckNodeU(), VISCOUS_3D::_ConvexFace::CheckPrisms(), SMDS_NodeFactory::Compact(), StdMeshers_Prism_3D::compute(), StdMeshers_Import_1D2D::Compute(), StdMeshers_PolyhedronPerSolid_3D::Compute(), StdMeshers_Projection_3D::Compute(), StdMeshers_RadialPrism_3D::Compute(), VISCOUS_3D::_ViscousBuilder::computeGeomSize(), StdMeshers_Sweeper::ComputeNodesOnStraight(), SMESH_Gen_i::ConcatenateCommon(), SMESHDS_GroupBase::Contains(), SMESHDS_GroupOnFilter::Contains(), SMDS_Mesh::Contains(), SMESH_MeshEditor::convertElemToQuadratic(), SMESH_MeshEditor::ConvertFromQuadratic(), SMESH_MeshEditor::ConvertToQuadratic(), MeshEditor_I::TPreviewMesh::Copy(), SMESH_Gen_i::CopyMesh(), SMESH_Gen_i::CopyMeshWithGeom(), SMESH_Mesh_i::CreateDimGroup(), SMESH_MeshEditor::CreateFlatElementsOnFacesGroups(), SMESH_MeshEditor::CreateHoleSkin(), SMESH_VisualObjDef::createPoints(), SMESH_MeshAlgos::Intersector::Algo::Cut(), SMESH_MeshAlgos::Intersector::CutByPlanes(), SMESHGUI_CuttingOfQuadsDlg::displayPreview(), SMESHGUI_CreatePolyhedralVolumeDlg::displaySimulation(), SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), StdMeshers_PrismAsBlock::THorizontalEdgeAdaptor::dumpNodes(), SMESH::SelectionProxy::elementConnectivity(), enlargeBoundingBox(), SMESH_MeshEditor::ExtrusionSweep(), VISCOUS_3D::_ViscousBuilder::findCollisionEdges(), SMESH::Controls::ManifoldPart::findConnected(), StdMeshers_Sweeper::findDelaunayTriangles(), SMESH_Mesh_i::FindElementByNodes(), SMESH_MeshEditor::FindEqualElements(), SMESH_MeshEditor::FindFreeBorder(), SMESH_MeshEditor::FindMatchingNodes(), SMESH_MeshEditor::FindShape(), SMESH_MeshEditor_i::FindSharpEdges(), findTriangles(), SMDS_ElementFactory::Free(), SMESH::Controls::FreeEdges::GetBoreders(), VISCOUS_3D::getDistFromEdge(), SMESH_VisualObjDef::GetEdgeNodes(), SMESHGUI_PreVisualObj::GetEdgeNodes(), SMESHDS_GroupOnFilter::getElementIds(), MeshEditor_I::getElementsAround(), SMESH_subMesh_i::GetElementsByType(), SMESH::Controls::Filter::GetElementsId(), SMESH_Mesh_i::GetElemNode(), LinkID_Gen::GetLinkID(), SMESH::Filter_i::GetMeshInfo(), SMESH::Filter_i::GetNbElementsByType(), getNodeElemDistance(), SMESH_Mesh_i::GetNodeInverseElements(), SMESH::Controls::ElementsOnShape::getNodeIsOut(), getNodeNodeDistance(), SMESH_VisualObjDef::GetNodeObjId(), SMESHGUI_PreVisualObj::GetNodeObjId(), SMESHGUI_PreVisualObj::GetNodeVTKId(), VISCOUS_3D::_EdgesOnShape::GetNormal(), SMESH_MeshEditor_i::GetPreviewData(), SMDS_ElementFactory::GetShapeIterator(), SMESH_Mesh_i::GetSubMeshNodesId(), SMESH::Controls::MultiConnection2D::GetValue(), SMESH::Controls::MultiConnection2D::GetValues(), SMESH::Controls::Length2D::GetValues(), SMDS_ElementChunk::GetVtkID(), SMESH_Hasher::HashCode(), SMESH_TLink::HashCode(), SMDS_VolumeTool::ID(), VISCOUS_3D::_ViscousBuilder::invalidateBadSmooth(), SMESH::Controls::FreeEdges::IsFreeEdge(), SMESH::Controls::ManifoldPart::isInPlane(), SMESH::Controls::ConnectedElements::IsSatisfy(), SMESH_ProxyMesh::IsTemporary(), VISCOUS_3D::_ViscousBuilder::makeGroupOfLE(), SMESH_Mesh_i::MakeGroupsOfBadInputElements(), StdMeshers_Penta_3D::MakeMeshOnFxy1(), SMESH_MeshAlgos::Intersector::Algo::MakeNewFaces(), StdMeshers_Penta_3D::MakeNodes(), SMESH_MeshAlgos::MakeOffset(), StdMeshers_Penta_3D::MakeVolumeMesh(), SMESH_MeshEditor::MergeNodes(), SMESH_MeshEditor_i::MoveClosestNodeToPoint(), SMESHDS_Mesh::MoveNode(), SMESH::Predicate_i::NbSatisfying(), SMESH::SelectionProxy::nodeConnectivity(), SMESH_MeshEditor::Offset(), SMESHGUI_CreatePolyhedralVolumeDlg::onTextChange(), SMESHGUI_ExtrusionAlongPathDlg::onTextChange(), SMESHGUI_RotationDlg::onTextChange(), SMESHGUI_ScaleDlg::onTextChange(), SMESHGUI_SewingDlg::onTextChange(), SMESHGUI_SingleEditDlg::onTextChange(), SMESHGUI_SymmetryDlg::onTextChange(), SMESHGUI_TranslationDlg::onTextChange(), SMESHGUI_MeshPatternDlg::onTextChanged(), TIDTypeCompare::operator()(), TIDCompare::operator()(), Prism_3D::TNode::operator<(), operator<<(), SMESH::SelectionProxy::perFaceConnectivity(), DriverCGNS_Write::Perform(), DriverDAT_W_SMDS_Mesh::Perform(), DriverUNV_W_SMDS_Mesh::Perform(), DriverMED_W_SMESHDS_Mesh::PerformInternal(), StdMeshers_Sweeper::prepareTopBotDelaunay(), SMDS_MeshNode::Print(), SMESH::Controls::ManifoldPart::process(), SMESH::Controls::ElementsOnSurface::process(), StdMeshers_Prism_3D::projectBottomToTop(), SMESH_MeshEditor_i::ProjectPoint(), SMESHDS_Mesh::RemoveElement(), SMESHDS_Mesh::RemoveFreeElement(), SMESHDS_Mesh::RemoveFreeNode(), SMESHDS_Mesh::RemoveNode(), SMESH_MeshEditor::RemoveNodeWithReconnection(), SMESH_MeshEditor::removeQuadElem(), SMESH_ProxyMesh::removeTmpElement(), SMESH_MeshAlgos::Intersector::Algo::replaceIntNode(), SMESH_Mesh_i::ReplaceShape(), SMESH_Gen_i::Save(), VISCOUS_3D::_ViscousBuilder::setEdgeData(), SMESH::Controls::CoplanarFaces::SetMesh(), SMESH::Controls::ElementsOnShape::setNodeIsOut(), StdMeshers_MaxElementVolume::SetParametersByMesh(), SMDS_ElementChunk::SetVTKID(), SMESH_MeshEditor::SewSideElements(), VISCOUS_2D::_ViscousBuilder2D::shrink(), SMESH_TLink::SMESH_TLink(), VISCOUS_3D::_ViscousBuilder::smoothAndCheck(), SMESH_MeshEditor::SplitEdge(), SMESH_MeshEditor::SplitFace(), and SMESH_MeshEditor::sweepElement().

◆ GetMesh()

◆ GetNode()

◆ GetNodeIndex()

int SMDS_MeshCell::GetNodeIndex ( const SMDS_MeshNode node) const
virtual

Check if a node belongs to the element.

Parameters
node- the node to check
Return values
int- node index within the element, -1 if not found

Reimplemented from SMDS_MeshElement.

Reimplemented in SMDS_MeshVolume.

References SMDS_MeshElement::getGrid(), SMDS_MeshVolume::GetNodeIndex(), SMDS_MeshElement::GetVtkID(), GetVtkType(), SMDS_MeshElement::IsNull(), and toVtkOrder().

Referenced by SMDS_MeshVolume::GetNodeIndex(), and SMESH_MeshEditor::makeWalls().

◆ GetNodeWrap()

const SMDS_MeshNode* SMDS_MeshElement::GetNodeWrap ( const int  ind) const
inherited

Return node by its index.

Parameters
ind- node index
Return values
constSMDS_MeshNode* - the node

Index is wrapped if it is out of a valid range of corner nodes

Referenced by SMESH_MeshAlgos::Intersector::Algo::Cut(), SMESH_MeshEditor::GetLinkedNodes(), and SMESH_MeshEditor::makeWalls().

◆ getshapeId()

virtual int SMDS_MeshElement::getshapeId ( ) const
virtualinherited

Referenced by SMESH_Delaunay::addCloseNodes(), SMESHDS_SubMesh::AddNode(), areNodesBound(), StdMeshers_Quadrangle_2D::check(), SMESH_MesherHelper::CheckNodeU(), SMESH_MesherHelper::CheckNodeUV(), StdMeshers_Import_1D2D::Compute(), VISCOUS_3D::_ViscousBuilder::computeGeomSize(), SMESHDS_SubMesh::Contains(), SMESH_MeshEditor::convertElemToQuadratic(), SMESH_MeshEditor::ConvertToQuadratic(), SMESH_MeshEditor::copyPosition(), SMESH_Pattern::createElements(), SMESH_MeshEditor::CreateHoleSkin(), SMESH_MeshEditor::DeleteDiag(), SMESH_Mesh_i::exportMEDFields(), VISCOUS_3D::_ViscousBuilder::findEdgesToUpdateNormalNearConvexFace(), StdMeshers_ProjectionUtils::FindMatchingNodesOnFaces(), SMESH_MeshEditor::FindShape(), VISCOUS_3D::_ViscousBuilder::findShapesToSmooth(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_MesherHelper::GetCentralNode(), VISCOUS_3D::_ViscousBuilder::getFaceNormal(), SMESH_MesherHelper::GetMediumNode(), SMESH_MesherHelper::getMediumNodeOnComposedWire(), SMESH_MesherHelper::GetMediumPos(), StdMeshers_PrismAsBlock::GetNodeColumn(), SMESH_MesherHelper::GetNodeU(), SMESH_MesherHelper::GetNodeUV(), VISCOUS_3D::_EdgesOnShape::GetNormal(), StdMeshers_FaceSide::GetOrderedNodes(), SMESH_ProxyMesh::GetProxyNode(), SMESH_Mesh_i::GetShapeID(), VISCOUS_3D::_Simplex::GetSimplices(), SMESH_MesherHelper::GetSubShapeByNode(), StdMeshers_FaceSide::GetUVPtStruct(), SMESH::Controls::Deflection2D::GetValue(), StdMeshers_PrismAsBlock::HasNodeColumn(), StdMeshers_PrismAsBlock::Init(), SMESH_MeshEditor::InsertNodesIntoLink(), SMESH_MeshEditor::InverseDiag(), SMESH_MesherHelper::IsCornerOfStructure(), SMESH::Controls::BelongToGeom::IsSatisfy(), SMESH::Controls::LyingOnGeom::IsSatisfy(), SMESH_Pattern::Load(), VISCOUS_3D::_ViscousBuilder::makeLayer(), SMESH_MeshEditor::MergeNodes(), StdMeshers_QuadToTriaAdaptor::MergePiramids(), DriverGMF_Write::Perform(), SMESH_MeshEditor::QuadTo4Tri(), SMESH_MeshEditor::Remove(), SMESHDS_Mesh::RemoveElement(), SMESHDS_SubMesh::RemoveElement(), SMESHDS_Mesh::RemoveFreeElement(), SMESHDS_Mesh::RemoveFreeNode(), SMESHDS_Mesh::RemoveNode(), SMESHDS_SubMesh::RemoveNode(), SMESH_MeshEditor::removeQuadElem(), VISCOUS_3D::_ViscousBuilder::setEdgeData(), SMESH_MeshEditor::SewSideElements(), VISCOUS_2D::_ViscousBuilder2D::shrink(), StdMeshers_Quadrangle_2D::smooth(), VISCOUS_3D::_ViscousBuilder::smoothAndCheck(), SMESH_MeshEditor::SplitBiQuadraticIntoLinear(), StdMeshers_PrismAsBlock::TPCurveOnHorFaceAdaptor::TPCurveOnHorFaceAdaptor(), SMESH_MeshEditor::TriToQuad(), SMESHDS_Mesh::UnSetElementOnShape(), SMESHDS_Mesh::UnSetNodeOnShape(), SMESH_MeshEditor::UpdateVolumes(), StdMeshers_PrismAsBlock::TSideFace::Value(), and SMESH_Algo::VertexNode().

◆ GetShapeID()

◆ GetType()

SMDSAbs_ElementType SMDS_MeshCell::GetType ( ) const
virtual

◆ GetVtkID()

◆ GetVtkType()

◆ init() [1/3]

void SMDS_MeshCell::init ( SMDSAbs_EntityType  entityType,
const std::vector< const SMDS_MeshNode * > &  nodes 
)
protected

◆ init() [2/3]

void SMDS_MeshCell::init ( SMDSAbs_EntityType  entityType,
const std::vector< vtkIdType > &  vtkNodeIds 
)
protected

◆ init() [3/3]

◆ InitStaticMembers()

void SMDS_MeshCell::InitStaticMembers ( )
static

Referenced by SMDS_Mesh::SMDS_Mesh().

◆ interlacedNodesIterator()

◆ interlacedSmdsOrder()

const std::vector< int > & SMDS_MeshCell::interlacedSmdsOrder ( SMDSAbs_EntityType  smdsType,
const size_t  nbNodes = 0 
)
static

Return indices to set nodes of a quadratic 1D or 2D element in interlaced order Usage: interlacedIDs[i] = smdsIDs[ indices[ i ]].

References SMDSEntity_Quad_Polygon.

Referenced by _GetVtkNodesToUNV::_GetVtkNodesToUNV(), SMESH_MeshEditor::applyMerge(), SMESH_MeshAlgos::DeMerge(), SMESH_MeshEditor::makeWalls(), DriverCGNS_Write::Perform(), and SMESH_MeshEditor::sweepElement().

◆ isMarked()

◆ IsMediumNode()

◆ IsNull()

◆ IsPoly() [1/2]

◆ IsPoly() [2/2]

bool SMDS_MeshCell::IsPoly ( SMDSAbs_EntityType  entityType)
static

◆ IsQuadratic() [1/2]

◆ IsQuadratic() [2/2]

bool SMDS_MeshCell::IsQuadratic ( SMDSAbs_EntityType  entityType)
static

◆ IsValidIndex()

bool SMDS_MeshElement::IsValidIndex ( const int  ind) const
virtualinherited

Return true if index of node is valid (0 <= ind < NbNodes())

Parameters
ind- node index
Return values
bool- index check result

References SMDS_MeshElement::NbNodes().

◆ NbCornerNodes() [1/2]

int SMDS_MeshCell::NbCornerNodes ( ) const
virtual

◆ NbCornerNodes() [2/2]

int SMDS_MeshCell::NbCornerNodes ( SMDSAbs_EntityType  entityType)
static

◆ NbEdges() [1/2]

int SMDS_MeshCell::NbEdges ( ) const
virtual

◆ NbEdges() [2/2]

int SMDS_MeshCell::NbEdges ( SMDSAbs_EntityType  entityType)
static

◆ NbFaces() [1/2]

int SMDS_MeshCell::NbFaces ( ) const
virtual

Implements SMDS_MeshElement.

Reimplemented in SMDS_MeshVolume.

References GetVtkType(), and SMDS_MeshVolume::NbFaces().

Referenced by SMDS_MeshVolume::NbFaces().

◆ NbFaces() [2/2]

int SMDS_MeshCell::NbFaces ( SMDSAbs_EntityType  entityType)
static

◆ NbNodes() [1/2]

◆ NbNodes() [2/2]

int SMDS_MeshCell::NbNodes ( SMDSAbs_EntityType  entityType)
static

◆ nodeIterator()

◆ nodesIterator()

SMDS_ElemIteratorPtr SMDS_MeshCell::nodesIterator ( ) const
virtual

◆ nodesIteratorToUNV()

SMDS_NodeIteratorPtr SMDS_MeshCell::nodesIteratorToUNV ( ) const
virtual

◆ Print()

void SMDS_MeshElement::Print ( std::ostream &  OS) const
inherited

Print self.

Referenced by operator<<().

◆ reverseSmdsOrder()

const std::vector< int > & SMDS_MeshCell::reverseSmdsOrder ( SMDSAbs_EntityType  smdsType,
const size_t  nbNodes = 0 
)
static

◆ setIsMarked()

◆ setShapeID()

void SMDS_MeshElement::setShapeID ( const int  shapeID) const
protectedvirtualinherited

◆ setVtkID()

void SMDS_MeshElement::setVtkID ( const vtkIdType  vtkID)
protectedinherited

◆ toSmdsType()

SMDSAbs_EntityType SMDS_MeshCell::toSmdsType ( VTKCellType  vtkType)
static

Return SMDSAbs_EntityType corresponding to VTKCellType.

Referenced by fromVtkOrder(), GetEntityType(), and toVtkOrder().

◆ toVtkOrder() [1/2]

const std::vector< int > & SMDS_MeshCell::toVtkOrder ( SMDSAbs_EntityType  smdsType)
static

Return indices to transform cell connectivity from SMDS to VTK Usage: vtkIDs[i] = smdsIDs[ indices[ i ]].

◆ toVtkOrder() [2/2]

const std::vector< int > & SMDS_MeshCell::toVtkOrder ( VTKCellType  vtkType)
static

Return indices to transform cell connectivity from SMDS to VTK Usage: vtkIDs[i] = smdsIDs[ indices[ i ]].

References toSmdsType().

Referenced by SMESH_VisualObjDef::buildElemPrs(), ChangeNodes(), GetNodeIndex(), init(), and SMESH::TElementSimulation::SetPosition().

◆ toVtkType()

VTKCellType SMDS_MeshCell::toVtkType ( SMDSAbs_EntityType  entityType)
static

◆ WrappedIndex()

int SMDS_MeshElement::WrappedIndex ( const int  ind) const
inherited

Return a valid corner node index, fixing the given one if necessary.

Parameters
ind- node index
Return values
int- valid node index

References SMDS_MeshElement::NbCornerNodes().

Referenced by SMDS_PolygonalFaceOfNodes::GetNode().

Friends And Related Function Documentation

◆ SMDS_Mesh

friend class SMDS_Mesh
friend

Field Documentation

◆ myHolder