0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSu...
[occt.git] / src / ShapeAnalysis / ShapeAnalysis_Surface.lxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#include <Geom_Surface.hxx>
c22b52d6 15#include <GeomAdaptor_Surface.hxx>
7fd59977 16
17//=======================================================================
18//function : Surface
19//purpose :
20//=======================================================================
21
22inline const Handle(Geom_Surface)& ShapeAnalysis_Surface::Surface() const
23{
24 return mySurf;
25}
26
27
28//=======================================================================
29//function : TrueAdaptor3d
30//purpose :
31//=======================================================================
32
c22b52d6 33inline const Handle(GeomAdaptor_Surface)& ShapeAnalysis_Surface::TrueAdaptor3d() const
7fd59977 34{
35 return myAdSur;
36}
37
38
39//=======================================================================
40//function : Gap
41//purpose :
42//=======================================================================
43
44inline Standard_Real ShapeAnalysis_Surface::Gap() const
45{
46 return myGap;
47}
48
49
50//=======================================================================
51//function : Value
52//purpose :
53//=======================================================================
54
55inline gp_Pnt ShapeAnalysis_Surface::Value (const Standard_Real u,
56 const Standard_Real v)
57{
84eca96b 58 return myAdSur->Value ( u, v );
7fd59977 59}
60
61
62//=======================================================================
63//function : Value
64//purpose :
65//=======================================================================
66
67inline gp_Pnt ShapeAnalysis_Surface::Value(const gp_Pnt2d& p2d)
68{
84eca96b 69 return myAdSur->Value ( p2d.X(), p2d.Y() );
7fd59977 70}
71
72
73//=======================================================================
74//function : Bounds
75//purpose :
76//=======================================================================
77
78inline void ShapeAnalysis_Surface::Bounds (Standard_Real& ufirst,
79 Standard_Real& ulast,
80 Standard_Real& vfirst,
81 Standard_Real& vlast) const
82{
83 ufirst = myUF;
84 ulast = myUL;
85 vfirst = myVF;
86 vlast = myVL;
87}
88
89//=======================================================================
90//function : UCloseVal
91//purpose :
92//=======================================================================
93
94inline Standard_Real ShapeAnalysis_Surface::UCloseVal() const
95{
96 return myUCloseVal;
97}
98
99//=======================================================================
100//function : VCloseVal
101//purpose :
102//=======================================================================
103
104inline Standard_Real ShapeAnalysis_Surface::VCloseVal() const
105{
106 return myVCloseVal;
107}