Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / ShHealOper / ShHealOper_Tool.cxx
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
6 //
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.
11 //
12
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.
17 //
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
21 //
22
23
24
25 #include <ShHealOper_Tool.hxx>
26
27 //=======================================================================
28 //function : ShHealOper_Tool()
29 //purpose  : Constructor
30 //=======================================================================
31
32 ShHealOper_Tool::ShHealOper_Tool (  )
33 {
34   myContext = new ShapeBuild_ReShape;
35   myDone = Standard_False;
36   myErrorStatus =ShHealOper_NotError;
37 }
38 //=======================================================================
39 //function : ShHealOper_Tool
40 //purpose  : 
41 //=======================================================================
42
43 ShHealOper_Tool::ShHealOper_Tool ( const TopoDS_Shape& theShape )
44 {
45   
46   myContext = new ShapeBuild_ReShape;
47   Init(theShape);
48 }
49 //=======================================================================
50 //function : Init
51 //purpose  : 
52 //=======================================================================
53
54 void ShHealOper_Tool::Init(const TopoDS_Shape& theShape)
55 {
56   myDone = Standard_False;
57   myErrorStatus =ShHealOper_NotError;
58   myInitShape = theShape;
59   myContext->Apply(myInitShape);
60 }