mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
rename SMDS_MeshNode::NbInverseNodes() to SMDS_MeshNode::NbInverseElements()
This commit is contained in:
parent
defefb9357
commit
30313fedf6
@ -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 )
|
||||
return myInverseElements.Extent();
|
||||
|
@ -47,7 +47,7 @@ class SMDS_EXPORT SMDS_MeshNode:public SMDS_MeshElement
|
||||
void ClearInverseElements();
|
||||
bool emptyInverseElements();
|
||||
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);
|
||||
const SMDS_PositionPtr& GetPosition() const;
|
||||
SMDSAbs_ElementType GetType() const;
|
||||
|
@ -6871,7 +6871,7 @@ int SMESH_MeshEditor::removeQuadElem(SMESHDS_SubMesh * theSm,
|
||||
vector<const SMDS_MeshNode*>::iterator nIt = mediumNodes.begin();
|
||||
for ( ; nIt != mediumNodes.end(); ++nIt ) {
|
||||
const SMDS_MeshNode* n = *nIt;
|
||||
if ( n->NbInverseNodes() == 0 ) {
|
||||
if ( n->NbInverseElements() == 0 ) {
|
||||
if ( n->GetPosition()->GetShapeId() != theShapeID )
|
||||
meshDS->RemoveFreeNode( n, meshDS->MeshElements
|
||||
( n->GetPosition()->GetShapeId() ));
|
||||
|
@ -1195,7 +1195,7 @@ static void cleanSubMesh( SMESH_subMesh * subMesh )
|
||||
while (itn->more()) {
|
||||
const SMDS_MeshNode * node = itn->next();
|
||||
//MESSAGE( " RM node: "<<node->GetID());
|
||||
if ( node->NbInverseNodes() == 0 )
|
||||
if ( node->NbInverseElements() == 0 )
|
||||
meshDS->RemoveFreeNode(node, subMeshDS);
|
||||
else // for StdMeshers_CompositeSegment_1D: node in one submesh, edge in another
|
||||
meshDS->RemoveNode(node);
|
||||
|
Loading…
Reference in New Issue
Block a user