0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / PBRep / PBRep_PointRepresentation.cxx
1 // Created on: 1993-08-11
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-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 #include <PBRep_PointRepresentation.ixx>
18
19 //=======================================================================
20 //function : PBRep_PointRepresentation
21 //purpose  : 
22 //=======================================================================
23
24 PBRep_PointRepresentation::PBRep_PointRepresentation
25   (const Standard_Real P,
26    const PTopLoc_Location& L) :
27    myLocation(L),
28    myParameter(P)
29   
30 {
31 }
32
33
34 //=======================================================================
35 //function : Location
36 //purpose  : 
37 //=======================================================================
38
39 PTopLoc_Location  PBRep_PointRepresentation::Location()const 
40 {
41   return myLocation;
42 }
43
44
45 //=======================================================================
46 //function : Parameter
47 //purpose  : 
48 //=======================================================================
49
50 Standard_Real  PBRep_PointRepresentation::Parameter()const 
51 {
52   return myParameter;
53 }
54
55
56 //=======================================================================
57 //function : Parameter
58 //purpose  : 
59 //=======================================================================
60
61 void  PBRep_PointRepresentation::Parameter(const Standard_Real P)
62 {
63   myParameter = P;
64 }
65
66
67 //=======================================================================
68 //function : Next
69 //purpose  : 
70 //=======================================================================
71
72 Handle(PBRep_PointRepresentation)  PBRep_PointRepresentation::Next()const 
73 {
74   return myNext;
75 }
76
77
78 //=======================================================================
79 //function : Next
80 //purpose  : 
81 //=======================================================================
82
83 void  PBRep_PointRepresentation::Next(const Handle(PBRep_PointRepresentation)& N)
84 {
85   myNext = N;
86 }
87
88 //=======================================================================
89 //function : IsPointOnCurve
90 //purpose  : 
91 //=======================================================================
92
93 Standard_Boolean PBRep_PointRepresentation::IsPointOnCurve() const
94 {
95   return Standard_False;
96 }
97
98 //=======================================================================
99 //function : IsPointOnCurveOnSurface
100 //purpose  : 
101 //=======================================================================
102
103 Standard_Boolean PBRep_PointRepresentation::IsPointOnCurveOnSurface() const
104 {
105   return Standard_False;
106 }
107
108 //=======================================================================
109 //function : IsPointOnSurface
110 //purpose  : 
111 //=======================================================================
112
113 Standard_Boolean PBRep_PointRepresentation::IsPointOnSurface() const
114 {
115   return Standard_False;
116 }