1 // File: ShHealOper_Tool.cxx
2 // Created: 26.04.04 12:11:33
3 // Author: Galina KULIKOVA
4 // < MODULE = KERNEL> <PACKAGE = ShHealOper> : <Shape Healing Operations>
5 // Copyright (C) 2003 CEA
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License.
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include <ShHealOper_Tool.hxx>
27 //=======================================================================
28 //function : ShHealOper_Tool()
29 //purpose : Constructor
30 //=======================================================================
32 ShHealOper_Tool::ShHealOper_Tool ( )
34 myContext = new ShapeBuild_ReShape;
35 myDone = Standard_False;
36 myErrorStatus =ShHealOper_NotError;
38 //=======================================================================
39 //function : ShHealOper_Tool
41 //=======================================================================
43 ShHealOper_Tool::ShHealOper_Tool ( const TopoDS_Shape& theShape )
46 myContext = new ShapeBuild_ReShape;
49 //=======================================================================
52 //=======================================================================
54 void ShHealOper_Tool::Init(const TopoDS_Shape& theShape)
56 myDone = Standard_False;
57 myErrorStatus =ShHealOper_NotError;
58 myInitShape = theShape;
59 myContext->Apply(myInitShape);