0024005: Intersecting a slightly off angle plane with a cylinder takes 7+ seconds
[occt.git] / src / IntTools / IntTools_Curve.lxx
1 // Copyright (c) 1999-2012 OPEN CASCADE SAS
2 //
3 // The content of this file is subject to the Open CASCADE Technology Public
4 // License Version 6.5 (the "License"). You may not use the content of this file
5 // except in compliance with the License. Please obtain a copy of the License
6 // at http://www.opencascade.org and read it completely before using this file.
7 //
8 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10 //
11 // The Original Code and all software distributed under the License is
12 // distributed on an "AS IS" basis, without warranty of any kind, and the
13 // Initial Developer hereby disclaims all such warranties, including without
14 // limitation, any warranties of merchantability, fitness for a particular
15 // purpose or non-infringement. Please see the License for the specific terms
16 // and conditions governing the rights and limitations under the License.
17
18 //=======================================================================
19 //function : SetCurve
20 //purpose  : 
21 //=======================================================================
22 inline void IntTools_Curve::SetCurve(const Handle(Geom_Curve)& Curve3d) 
23 {
24   my3dCurve = Curve3d;
25 }
26
27 //=======================================================================
28 //function : SetFirstCurve2d
29 //purpose  : 
30 //=======================================================================
31   inline void IntTools_Curve::SetFirstCurve2d(const Handle(Geom2d_Curve)& FirstCurve2d) 
32 {
33   my2dCurve1 = FirstCurve2d;
34 }
35 //=======================================================================
36 //function : SetSecondCurve2d
37 //purpose  : 
38 //=======================================================================
39   inline void IntTools_Curve::SetSecondCurve2d(const Handle(Geom2d_Curve)& SecondCurve2d) 
40 {
41   my2dCurve2 = SecondCurve2d;
42 }
43
44 //=======================================================================
45 //function : Curve
46 //purpose  : 
47 //=======================================================================
48   inline const Handle(Geom_Curve)& IntTools_Curve::Curve() const
49 {
50   return my3dCurve;
51 }
52
53 //=======================================================================
54 //function : FirstCurve2d
55 //purpose  : 
56 //=======================================================================
57   inline const Handle(Geom2d_Curve)& IntTools_Curve::FirstCurve2d() const
58 {
59   return my2dCurve1;
60 }
61 //=======================================================================
62 //function : SecondCurve2d
63 //purpose  : 
64 //=======================================================================
65   inline const Handle(Geom2d_Curve)& IntTools_Curve::SecondCurve2d() const
66 {
67   return my2dCurve2;
68 }
69
70