-// File: ShHealOper_Sewing.cxx
-// Created: 29.04.04 15:07:10
-// Author: Galina KULIKOVA
-// < MODULE = KERNEL> <PACKAGE = ShHealOper> : <Shape Healing Operations>
-// Copyright (C) 2003 CEA
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
-// 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.
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
-
-// 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.
+// 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.
//
-// 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
+// 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: ShHealOper_Sewing.cxx
+// Created: 29.04.04 15:07:10
+// Author: Galina KULIKOVA
+//
#include <ShHealOper_Sewing.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Shell.hxx>
return myDone;
}
//sewing shape
- Handle(BRepAlgo_Sewing) aSewing = new BRepAlgo_Sewing;
+ Handle(BRepBuilderAPI_Sewing) aSewing = new BRepBuilderAPI_Sewing;
aSewing->Load(myInitShape);
aSewing->SetTolerance(myTolerance);
aSewing->SetFaceMode(myFacesMode);
//analysis either sewing was made by changing number of shells
myDone = isSewed(aSewShape);
- //keep modification of the subshapes in the Context.
+ //keep modification of the sub-shapes in the Context.
TopExp_Explorer aExp(myInitShape,TopAbs_FACE);
for( ; aExp.More(); aExp.Next())
myDone = (getModifications( aExp.Current(),aSewing) || myDone);
//=======================================================================
Standard_Boolean ShHealOper_Sewing::getModifications(const TopoDS_Shape& theShape,
- const Handle(BRepAlgo_Sewing)& theSewing) const
+ const Handle(BRepBuilderAPI_Sewing)& theSewing) const
{
if((Standard_Integer)theShape.ShapeType() > (Standard_Integer)myHistoryLevel)
return Standard_False;