Salome HOME
0021818: [CEA 645] Error when using Use Internal Vertices
authoreap <eap@opencascade.com>
Fri, 31 Aug 2012 11:04:42 +0000 (11:04 +0000)
committereap <eap@opencascade.com>
Fri, 31 Aug 2012 11:04:42 +0000 (11:04 +0000)
   Fix detection of INTERNAL nodes

src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 86ca502586f6d990ecb11dcef5c636a4499240cc..00147882fa7ca15c360d669437fef6bf09d98ae1 100644 (file)
@@ -1029,13 +1029,9 @@ void BLSURFPlugin_BLSURF::SetParameters(
       TopExp_Explorer exp (GeomShape, TopAbs_FACE);
       for (; exp.More(); exp.Next()){
         MESSAGE("Iterating shapes. Shape type is " << exp.Current().ShapeType());
-        TopExp_Explorer exp_face (exp.Current(), TopAbs_VERTEX);
+        TopExp_Explorer exp_face (exp.Current(), TopAbs_VERTEX, TopAbs_EDGE);
         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