rename SMDS_MeshNode::NbInverseNodes() to SMDS_MeshNode::NbInverseElements()

This commit is contained in:
eap 2008-03-05 10:50:16 +00:00
parent defefb9357
commit 30313fedf6
4 changed files with 4 additions and 4 deletions

View File

@ -246,7 +246,7 @@ bool SMDS_MeshNode::emptyInverseElements()
*/ */
//================================================================================ //================================================================================
int SMDS_MeshNode::NbInverseNodes(SMDSAbs_ElementType type) const int SMDS_MeshNode::NbInverseElements(SMDSAbs_ElementType type) const
{ {
if ( type == SMDSAbs_All ) if ( type == SMDSAbs_All )
return myInverseElements.Extent(); return myInverseElements.Extent();

View File

@ -47,7 +47,7 @@ class SMDS_EXPORT SMDS_MeshNode:public SMDS_MeshElement
void ClearInverseElements(); void ClearInverseElements();
bool emptyInverseElements(); bool emptyInverseElements();
SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const; SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const;
int NbInverseNodes(SMDSAbs_ElementType type=SMDSAbs_All) const; int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const;
void SetPosition(const SMDS_PositionPtr& aPos); void SetPosition(const SMDS_PositionPtr& aPos);
const SMDS_PositionPtr& GetPosition() const; const SMDS_PositionPtr& GetPosition() const;
SMDSAbs_ElementType GetType() const; SMDSAbs_ElementType GetType() const;

View File

@ -6871,7 +6871,7 @@ int SMESH_MeshEditor::removeQuadElem(SMESHDS_SubMesh * theSm,
vector<const SMDS_MeshNode*>::iterator nIt = mediumNodes.begin(); vector<const SMDS_MeshNode*>::iterator nIt = mediumNodes.begin();
for ( ; nIt != mediumNodes.end(); ++nIt ) { for ( ; nIt != mediumNodes.end(); ++nIt ) {
const SMDS_MeshNode* n = *nIt; const SMDS_MeshNode* n = *nIt;
if ( n->NbInverseNodes() == 0 ) { if ( n->NbInverseElements() == 0 ) {
if ( n->GetPosition()->GetShapeId() != theShapeID ) if ( n->GetPosition()->GetShapeId() != theShapeID )
meshDS->RemoveFreeNode( n, meshDS->MeshElements meshDS->RemoveFreeNode( n, meshDS->MeshElements
( n->GetPosition()->GetShapeId() )); ( n->GetPosition()->GetShapeId() ));

View File

@ -1195,7 +1195,7 @@ static void cleanSubMesh( SMESH_subMesh * subMesh )
while (itn->more()) { while (itn->more()) {
const SMDS_MeshNode * node = itn->next(); const SMDS_MeshNode * node = itn->next();
//MESSAGE( " RM node: "<<node->GetID()); //MESSAGE( " RM node: "<<node->GetID());
if ( node->NbInverseNodes() == 0 ) if ( node->NbInverseElements() == 0 )
meshDS->RemoveFreeNode(node, subMeshDS); meshDS->RemoveFreeNode(node, subMeshDS);
else // for StdMeshers_CompositeSegment_1D: node in one submesh, edge in another else // for StdMeshers_CompositeSegment_1D: node in one submesh, edge in another
meshDS->RemoveNode(node); meshDS->RemoveNode(node);