]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
0020960: EDF 1532 GEOM: Creation of some points when partitioning a torus with a...
authoreap <eap@opencascade.com>
Fri, 27 Aug 2010 05:54:38 +0000 (05:54 +0000)
committereap <eap@opencascade.com>
Fri, 27 Aug 2010 05:54:38 +0000 (05:54 +0000)
* Do not report an error if there are vertices without nodes.

src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx

index dc396b7dd623e3178e94d436d4b2539f230637be..99e71a7df3df239ff69244a3329638ff356e2614 100644 (file)
@@ -179,9 +179,14 @@ static TError AddSegmentsToMesh(netgen::Mesh&                    ngMesh,
   {
     StdMeshers_FaceSidePtr wire = wires[ iW ];
     if ( wire->MissVertexNode() )
-      return TError
-        (new SMESH_ComputeError(COMPERR_BAD_INPUT_MESH, "Missing nodes on vertices"));
-      
+    {
+      // Commented for issue 0020960. It worked for the case, let's wait for case where it doesn't.
+      // It seems that there is no reason for this limitation
+//       return TError
+//         (new SMESH_ComputeError(COMPERR_BAD_INPUT_MESH, "Missing nodes on vertices"));
+      if (getenv("USER") && string("eap")==getenv("USER"))
+        cout << "Warning: NETGENPlugin_NETGEN_2D_ONLY : try to work with missing nodes on vertices"<<endl;
+    }
     const vector<UVPtStruct>& uvPtVec = wire->GetUVPtStruct();
     if ( uvPtVec.size() != wire->NbPoints() )
       return TError