From: eap Date: Tue, 28 Aug 2012 15:09:11 +0000 (+0000) Subject: 0021818: [CEA 645] Error when using Use Internal Vertices X-Git-Tag: V6_6_0a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9591aa359c0f2b1bb80ed748ecf269878e93e57f;p=plugins%2Fblsurfplugin.git 0021818: [CEA 645] Error when using Use Internal Vertices make enforced only INTERNAL vertices + if ( exp_face.Current().Orientation() != TopAbs_INTERNAL && + SMESH_MesherHelper::GetAncestors( exp_face.Current(), mesh, TopAbs_EDGE )->more()) + continue; --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 732760b..28a1172 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1028,11 +1028,13 @@ void BLSURFPlugin_BLSURF::SetParameters( TopExp_Explorer exp_face (exp.Current(), TopAbs_VERTEX); for (; exp_face.More(); exp_face.Next()) { + // check if a vertex is internal + if ( exp_face.Current().Orientation() != TopAbs_INTERNAL && + SMESH_MesherHelper::GetAncestors( exp_face.Current(), mesh, TopAbs_EDGE )->more()) + continue; // Get coords of vertex // Check if current coords is already in enfVertexList // If coords not in enfVertexList, add new enfVertex - if ( exp_face.Current().Orientation() != TopAbs_INTERNAL ) - continue; aPnt = BRep_Tool::Pnt(TopoDS::Vertex(exp_face.Current())); MESSAGE("Found vertex on face at " << aPnt.X() <<", "<