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