0032402: Coding Rules - eliminate msvc warning C4668 (symbol is not defined as a...
[occt.git] / src / GeomFill / GeomFill_Boundary.cxx
1 // Created on: 1995-11-03
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
18 #include <GeomFill_Boundary.hxx>
19 #include <gp_Pnt.hxx>
20 #include <gp_Vec.hxx>
21 #include <Standard_Type.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_Boundary,Standard_Transient)
24
25 //=======================================================================
26 //function : GeomFill_Boundary
27 //purpose  : 
28 //=======================================================================
29 GeomFill_Boundary::GeomFill_Boundary(const Standard_Real Tol3d, 
30                                      const Standard_Real Tolang):
31  myT3d(Tol3d), myTang(Tolang)
32 {
33 }
34
35
36 //=======================================================================
37 //function : HasNormals
38 //purpose  : 
39 //=======================================================================
40
41 Standard_Boolean GeomFill_Boundary::HasNormals() const 
42 {
43   return Standard_False;
44 }
45
46
47 //=======================================================================
48 //function : Norm
49 //purpose  : 
50 //=======================================================================
51
52 gp_Vec GeomFill_Boundary::Norm(const Standard_Real ) const 
53 {
54   throw Standard_Failure("GeomFill_Boundary::Norm : Undefined normals");
55 }
56
57
58 //=======================================================================
59 //function : D1Norm
60 //purpose  : 
61 //=======================================================================
62
63 void GeomFill_Boundary::D1Norm(const Standard_Real , gp_Vec& , gp_Vec& ) const 
64 {
65   throw Standard_Failure("GeomFill_Boundary::Norm : Undefined normals");
66 }
67
68
69 //=======================================================================
70 //function : Points
71 //purpose  : 
72 //=======================================================================
73
74 void GeomFill_Boundary::Points(gp_Pnt& PFirst, gp_Pnt& PLast) const
75 {
76   Standard_Real f,l;
77   Bounds(f,l);
78   PFirst = Value(f);
79   PLast  = Value(l);
80 }
81
82
83 //=======================================================================
84 //function : Tol3d
85 //purpose  : 
86 //=======================================================================
87
88 Standard_Real GeomFill_Boundary::Tol3d() const 
89 {
90   return myT3d;
91 }
92
93
94 //=======================================================================
95 //function : Tol3d
96 //purpose  : 
97 //=======================================================================
98
99 void GeomFill_Boundary::Tol3d(const Standard_Real Tol)
100 {
101   myT3d = Tol;
102 }
103
104
105 //=======================================================================
106 //function : Tolang
107 //purpose  : 
108 //=======================================================================
109
110 Standard_Real GeomFill_Boundary::Tolang() const 
111 {
112   return myTang;
113 }
114
115
116 //=======================================================================
117 //function : Tolang
118 //purpose  : 
119 //=======================================================================
120
121 void GeomFill_Boundary::Tolang(const Standard_Real Tol)
122 {
123   myTang = Tol;
124 }
125
126