Salome HOME
Update mail address
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeAlgo.cxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 // File:        GEOMAlgo_ShapeAlgo.cxx
21 // Created:     Tue Dec  7 12:06:54 2004
22 // Author:      Peter KURNEV
23 //              <pkv@irinox>
24
25
26 #include <GEOMAlgo_ShapeAlgo.ixx>
27
28 //=======================================================================
29 //function : GEOMAlgo_ShapeAlgo
30 //purpose  : 
31 //=======================================================================
32 GEOMAlgo_ShapeAlgo::GEOMAlgo_ShapeAlgo()
33
34   GEOMAlgo_Algo()
35 {
36   myTolerance=0.0001;
37 }
38        
39 //=======================================================================
40 //function : ~
41 //purpose  : 
42 //=======================================================================
43 GEOMAlgo_ShapeAlgo::~GEOMAlgo_ShapeAlgo()
44 {
45 }
46 //=======================================================================
47 //function : SetShape
48 //purpose  : 
49 //=======================================================================
50 void GEOMAlgo_ShapeAlgo::SetShape(const TopoDS_Shape& aS)
51 {
52   myShape=aS;
53 }
54 //=======================================================================
55 //function : Shape
56 //purpose  : 
57 //=======================================================================
58 const TopoDS_Shape& GEOMAlgo_ShapeAlgo::Shape()const
59 {
60   return myShape;
61 }
62 //=======================================================================
63 //function : SetTolerance
64 //purpose  : 
65 //=======================================================================
66 void GEOMAlgo_ShapeAlgo::SetTolerance(const Standard_Real aT)
67 {
68   myTolerance=aT;
69 }
70 //=======================================================================
71 //function : Tolerance
72 //purpose  : 
73 //=======================================================================
74 Standard_Real GEOMAlgo_ShapeAlgo::Tolerance()const
75 {
76   return myTolerance;
77 }
78 //=======================================================================
79 //function : Result
80 //purpose  : 
81 //=======================================================================
82 const TopoDS_Shape& GEOMAlgo_ShapeAlgo::Result()const
83 {
84   return myResult;
85 }