Salome HOME
PAL7508: Development of new block functionalities. Implement GetShapesOn<xxx>() funct...
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeAlgo.cxx
1 // File:        GEOMAlgo_ShapeAlgo.cxx
2 // Created:     Tue Dec  7 12:06:54 2004
3 // Author:      Peter KURNEV
4 //              <pkv@irinox>
5
6
7 #include <GEOMAlgo_ShapeAlgo.ixx>
8
9 //=======================================================================
10 //function : GEOMAlgo_ShapeAlgo
11 //purpose  : 
12 //=======================================================================
13 GEOMAlgo_ShapeAlgo::GEOMAlgo_ShapeAlgo()
14
15   GEOMAlgo_Algo()
16 {
17   myTolerance=0.0001;
18 }
19        
20 //=======================================================================
21 //function : ~
22 //purpose  : 
23 //=======================================================================
24 GEOMAlgo_ShapeAlgo::~GEOMAlgo_ShapeAlgo()
25 {
26 }
27 //=======================================================================
28 //function : SetShape
29 //purpose  : 
30 //=======================================================================
31 void GEOMAlgo_ShapeAlgo::SetShape(const TopoDS_Shape& aS)
32 {
33   myShape=aS;
34 }
35 //=======================================================================
36 //function : Shape
37 //purpose  : 
38 //=======================================================================
39 const TopoDS_Shape& GEOMAlgo_ShapeAlgo::Shape()const
40 {
41   return myShape;
42 }
43 //=======================================================================
44 //function : SetTolerance
45 //purpose  : 
46 //=======================================================================
47 void GEOMAlgo_ShapeAlgo::SetTolerance(const Standard_Real aT)
48 {
49   myTolerance=aT;
50 }
51 //=======================================================================
52 //function : Tolerance
53 //purpose  : 
54 //=======================================================================
55 Standard_Real GEOMAlgo_ShapeAlgo::Tolerance()const
56 {
57   return myTolerance;
58 }
59 //=======================================================================
60 //function : Result
61 //purpose  : 
62 //=======================================================================
63 const TopoDS_Shape& GEOMAlgo_ShapeAlgo::Result()const
64 {
65   return myResult;
66 }