From 59a524d8e5e8f9ea53a401a458e0f0e7beccee18 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 17 Oct 2014 15:58:57 +0400 Subject: [PATCH] 22783: SetEnforcedVertexNamedWithGroup() does not create a group --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 8d5d795..b8e2efd 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -2216,21 +2216,22 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, MESSAGE("Point is out of face: node is not created"); if (EnfVertexCoords2ProjVertex.find(xyzCoords) != EnfVertexCoords2ProjVertex.end()) { EnfVertexCoords2ProjVertex.erase(xyzCoords); - EnfVertexCoords2EnfVertexList.erase(xyzCoords); + // isssue 22783. Do not erase as this point can be IN other face of a group + //EnfVertexCoords2EnfVertexList.erase(xyzCoords); } } if ( result == TopAbs_UNKNOWN ) { MESSAGE("Point position on face is unknown: node is not created"); if (EnfVertexCoords2ProjVertex.find(xyzCoords) != EnfVertexCoords2ProjVertex.end()) { EnfVertexCoords2ProjVertex.erase(xyzCoords); - EnfVertexCoords2EnfVertexList.erase(xyzCoords); + //EnfVertexCoords2EnfVertexList.erase(xyzCoords); } } if ( result == TopAbs_ON ) { MESSAGE("Point is on border of face: node is not created"); if (EnfVertexCoords2ProjVertex.find(xyzCoords) != EnfVertexCoords2ProjVertex.end()) { EnfVertexCoords2ProjVertex.erase(xyzCoords); - EnfVertexCoords2EnfVertexList.erase(xyzCoords); + //EnfVertexCoords2EnfVertexList.erase(xyzCoords); } } if ( result == TopAbs_IN ) @@ -2499,7 +2500,7 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, MESSAGE("BEFORE PERIODICITY"); MESSAGE("_preCadFacesIDsPeriodicityVector.size() = " << _preCadFacesIDsPeriodicityVector.size()); - if (! _preCadFacesIDsPeriodicityVector.empty()){ + if (! _preCadFacesIDsPeriodicityVector.empty()) { MESSAGE("INTO PRECAD FACES PERIODICITY"); for (std::size_t i=0; i < _preCadFacesIDsPeriodicityVector.size(); i++){ std::vector theFace1_ids = _preCadFacesIDsPeriodicityVector[i].shape1IDs; @@ -2549,7 +2550,7 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, } MESSAGE("_preCadEdgesIDsPeriodicityVector.size() = " << _preCadEdgesIDsPeriodicityVector.size()); - if (! _preCadEdgesIDsPeriodicityVector.empty()){ + if (! _preCadEdgesIDsPeriodicityVector.empty()) { MESSAGE("INTO PRECAD EDGES PERIODICITY"); for (std::size_t i=0; i < _preCadEdgesIDsPeriodicityVector.size(); i++){ std::vector theEdge1_ids = _preCadEdgesIDsPeriodicityVector[i].shape1IDs; -- 2.39.2