summaryrefslogtreecommitdiff
path: root/inc/GeomAdaptor_Surface.lxx
blob: 862d3497fa9d778849385371fca147478ec221f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// File:      GeomAdaptor_Surface.lxx
// Created:   Tue May 18 16:12:12 1993
// Author:    Bruno DUMORTIER
// Copyright: OPEN CASCADE 1993

#include <Geom_Surface.hxx>

//=======================================================================
//function : GeomAdaptor_Surface
//purpose  : 
//=======================================================================

inline GeomAdaptor_Surface::GeomAdaptor_Surface()
 : myTolU(0.), myTolV(0.)
{} 

//=======================================================================
//function : GeomAdaptor_Surface
//purpose  : 
//=======================================================================

inline GeomAdaptor_Surface::GeomAdaptor_Surface(const Handle(Geom_Surface)& S)
 : myTolU(0.), myTolV(0.)
{
  Load(S);
}

//=======================================================================
//function : GeomAdaptor_Surface
//purpose  : 
//=======================================================================

inline GeomAdaptor_Surface::GeomAdaptor_Surface(const Handle(Geom_Surface)& S,
                                                const Standard_Real UFirst,
                                                const Standard_Real ULast,
                                                const Standard_Real VFirst,
                                                const Standard_Real VLast,
                                                const Standard_Real TolU,
                                                const Standard_Real TolV)
{
  Load(S,UFirst,ULast,VFirst,VLast,TolU,TolV);
}

//=======================================================================
//function : Load
//purpose  : 
//=======================================================================

inline void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S)
{
  Standard_Real U1,U2,V1,V2;
  S->Bounds(U1,U2,V1,V2);
  Load(S,U1,U2,V1,V2);
}

//=======================================================================
//function : Surface
//purpose  : 
//=======================================================================

inline const Handle(Geom_Surface)& GeomAdaptor_Surface::Surface() const {
  return mySurface;
}

//=======================================================================
//function : FirstUParameter
//purpose  : 
//=======================================================================

inline Standard_Real GeomAdaptor_Surface::FirstUParameter() const {
  return myUFirst;
}

//=======================================================================
//function : LastUParameter
//purpose  : 
//=======================================================================

inline Standard_Real GeomAdaptor_Surface::LastUParameter() const {
  return myULast;
}

//=======================================================================
//function : FirstVParameter
//purpose  : 
//=======================================================================

inline Standard_Real GeomAdaptor_Surface::FirstVParameter() const {
  return myVFirst;
}

//=======================================================================
//function : LastVParameter
//purpose  : 
//=======================================================================

inline Standard_Real GeomAdaptor_Surface::LastVParameter() const {
  return myVLast;
}

//=======================================================================
//function : GetType
//purpose  : 
//=======================================================================

inline GeomAbs_SurfaceType GeomAdaptor_Surface::GetType() const {
  return mySurfaceType;
}