Salome HOME
*** empty log message ***
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Splitter1.cxx
index 260ac90eceb7041ea2456d1b298f54b88496adc6..b4f21b09d987bf873c26e3549938416c59dc172b 100644 (file)
@@ -1,3 +1,22 @@
+// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either 
+// version 2.1 of the License.
+// 
+// This library is distributed in the hope that it will be useful 
+// but WITHOUT ANY WARRANTY; without even the implied warranty of 
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public  
+// License along with this library; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 // File:       NMTAlgo_Splitter1.cxx
 // Created:    Wed Feb 11 14:26:27 2004
 // Author:     Peter KURNEV
     //
     aNbSd=aMSd.Extent();
     if (!aNbSd) {
+      //modified by NIZNHY-PKV Thu Dec 23 15:07:46 2004 f
+      Standard_Boolean bFound;
+      //modified by NIZNHY-PKV Thu Dec 23 15:07:49 2004 t
       TopoDS_Shape aSd;
       //
       const TopoDS_Shape& aFC=myImageShape.Image(aS).First();
-      NMTAlgo_Tools::FindImageSolid(aFC, aMSo, aSd);
-      //
-      aMSd.Add(aSd);
+      //modified by NIZNHY-PKV Thu Dec 23 15:08:17 2004 f
+      //NMTAlgo_Tools::FindImageSolid(aFC, aMSo, aSd);
+      //aMSd.Add(aSd);
+      bFound=NMTAlgo_Tools::FindImageSolid(aFC, aMSo, aSd);
+      if (!aSd.IsNull()) {
+       aMSd.Add(aSd);
+      }
+      //modified by NIZNHY-PKV Thu Dec 23 15:09:02 2004 t
     }
     aMCS.Add(aS, aMSd); 
   } //for ( ;aItS.More(); aItS.Next())