0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / HLRBRep / HLRBRep_BiPnt2D.lxx
1 // Created on: 1992-08-25
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #define EMskRg1Line  ((Standard_Boolean)1)
18 #define EMskRgNLine  ((Standard_Boolean)2)
19 #define EMskOutLine  ((Standard_Boolean)4)
20 #define EMskIntLine  ((Standard_Boolean)8)
21
22 //=======================================================================
23 //function : P1
24 //purpose  : 
25 //=======================================================================
26
27 inline const gp_Pnt2d & HLRBRep_BiPnt2D::P1 () const
28 { return myP1; }
29
30 //=======================================================================
31 //function : P2
32 //purpose  : 
33 //=======================================================================
34
35 inline const gp_Pnt2d & HLRBRep_BiPnt2D::P2 () const
36 { return myP2; }
37
38 //=======================================================================
39 //function : Shape
40 //purpose  : 
41 //=======================================================================
42
43 inline const TopoDS_Shape & HLRBRep_BiPnt2D::Shape () const
44 { return myShape; }
45
46 //=======================================================================
47 //function : Shape
48 //purpose  : 
49 //=======================================================================
50
51 inline void HLRBRep_BiPnt2D::Shape (const TopoDS_Shape& S)
52 { myShape = S; }
53
54 //=======================================================================
55 //function : Rg1Line
56 //purpose  : 
57 //=======================================================================
58
59 inline Standard_Boolean HLRBRep_BiPnt2D::Rg1Line () const
60 { return (myFlags & EMskRg1Line) != 0; }
61
62 //=======================================================================
63 //function : Rg1Line
64 //purpose  : 
65 //=======================================================================
66
67 inline void HLRBRep_BiPnt2D::Rg1Line (const Standard_Boolean B)
68 {
69   if (B) myFlags |=  EMskRg1Line;
70   else   myFlags &= ~EMskRg1Line;
71 }
72
73 //=======================================================================
74 //function : RgNLine
75 //purpose  : 
76 //=======================================================================
77
78 inline Standard_Boolean HLRBRep_BiPnt2D::RgNLine () const
79 { return (myFlags & EMskRgNLine) != 0; }
80
81 //=======================================================================
82 //function : RgNLine
83 //purpose  : 
84 //=======================================================================
85
86 inline void HLRBRep_BiPnt2D::RgNLine (const Standard_Boolean B)
87 {
88   if (B) myFlags |=  EMskRgNLine;
89   else   myFlags &= ~EMskRgNLine;
90 }
91
92 //=======================================================================
93 //function : OutLine
94 //purpose  : 
95 //=======================================================================
96
97 inline Standard_Boolean HLRBRep_BiPnt2D::OutLine () const
98 { return (myFlags & EMskOutLine) != 0; }
99
100 //=======================================================================
101 //function : OutLine
102 //purpose  : 
103 //=======================================================================
104
105 inline void HLRBRep_BiPnt2D::OutLine (const Standard_Boolean B)
106 {
107   if (B) myFlags |=  EMskOutLine;
108   else   myFlags &= ~EMskOutLine;
109 }
110
111 //=======================================================================
112 //function : IntLine
113 //purpose  : 
114 //=======================================================================
115
116 inline Standard_Boolean HLRBRep_BiPnt2D::IntLine () const
117 { return (myFlags & EMskIntLine) != 0; }
118
119 //=======================================================================
120 //function : IntLine
121 //purpose  : 
122 //=======================================================================
123
124 inline void HLRBRep_BiPnt2D::IntLine (const Standard_Boolean B)
125 {
126   if (B) myFlags |=  EMskIntLine;
127   else   myFlags &= ~EMskIntLine;
128 }