0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / GeomFill / GeomFill_DegeneratedBound.cxx
1 // Created on: 1995-12-05
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1995-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 <GeomFill_DegeneratedBound.ixx>
18
19 //=======================================================================
20 //function : GeomFill_DegeneratedBound
21 //purpose  : 
22 //=======================================================================
23
24 GeomFill_DegeneratedBound::GeomFill_DegeneratedBound
25 (const gp_Pnt& Point, 
26  const Standard_Real First, 
27  const Standard_Real Last, 
28  const Standard_Real Tol3d, 
29  const Standard_Real Tolang) :
30  GeomFill_Boundary(Tol3d,Tolang),
31  myPoint(Point),myFirst(First),myLast(Last)
32 {
33 }
34
35
36 //=======================================================================
37 //function : Value
38 //purpose  : 
39 //=======================================================================
40
41 //gp_Pnt GeomFill_DegeneratedBound::Value(const Standard_Real U) const 
42 gp_Pnt GeomFill_DegeneratedBound::Value(const Standard_Real ) const 
43 {
44   return myPoint;
45 }
46
47
48 //=======================================================================
49 //function : D1
50 //purpose  : 
51 //=======================================================================
52
53 //void GeomFill_DegeneratedBound::D1(const Standard_Real U, 
54 void GeomFill_DegeneratedBound::D1(const Standard_Real , 
55                                    gp_Pnt& P, 
56                                    gp_Vec& V) const 
57 {
58   P = myPoint;
59   V.SetCoord(0.,0.,0.);
60 }
61
62
63 //=======================================================================
64 //function : Reparametrize
65 //purpose  : 
66 //=======================================================================
67
68 void GeomFill_DegeneratedBound::Reparametrize(const Standard_Real First, 
69                                               const Standard_Real Last, 
70                                               const Standard_Boolean , 
71                                               const Standard_Boolean , 
72                                               const Standard_Real , 
73                                               const Standard_Real , 
74                                               const Standard_Boolean )
75 {
76   myFirst = First;
77   myLast  = Last;
78 }
79
80
81 //=======================================================================
82 //function : Bounds
83 //purpose  : 
84 //=======================================================================
85
86 void GeomFill_DegeneratedBound::Bounds(Standard_Real& First, 
87                                        Standard_Real& Last) const 
88 {
89   First = myFirst;
90   Last  = myLast;
91 }
92
93
94 //=======================================================================
95 //function : IsDegenerated
96 //purpose  : 
97 //=======================================================================
98
99 Standard_Boolean GeomFill_DegeneratedBound::IsDegenerated() const 
100 {
101   return Standard_True;
102 }