X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNMTAlgo%2FNMTAlgo_Splitter.cxx;h=a922453462424076a201a51c19a574b0e8972418;hb=52a39bebf31f3f73230d6d6ac4ff127c8ca421dc;hp=9b85beebc7185875de7afc54c8cf9e1cc6b7ab2d;hpb=b7cff0a4ec43ee005440c53e196b5c94f076dbca;p=modules%2Fgeom.git diff --git a/src/NMTAlgo/NMTAlgo_Splitter.cxx b/src/NMTAlgo/NMTAlgo_Splitter.cxx index 9b85beebc..a92245346 100644 --- a/src/NMTAlgo/NMTAlgo_Splitter.cxx +++ b/src/NMTAlgo/NMTAlgo_Splitter.cxx @@ -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_Splitter.cxx // Created: Thu Jan 29 17:13:03 2004 // Author: Peter KURNEV @@ -290,12 +309,18 @@ static return; } // - if (!mySourceShapes.Extent()){ + if (!mySourceShapes.Extent()) { // No source shapes to treat myErrorStatus=103; return; } // + if (!aDSF.IsDone()) { + // NMTTools_DSFiller failed + myErrorStatus=104; + return; + } + // NMTAlgo_Builder::ComputeWithFiller(aDSF); // myIsComputed=Standard_True; @@ -603,3 +628,4 @@ static // 101 - Null shape is not allowed here // 102 - DS is not computed // 103 - No source shapes to treat +// 104 - NMTTools_DSFiller failed