summaryrefslogtreecommitdiff
path: root/inc/HLRBRep_SLPropsATool.lxx
blob: 7ffd01b2047a19e524170a7820d6ede060f2f06d (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
// File:	HLRBRep_SLPropsATool.lxx
// Created:	Tue Aug 18 15:16:03 1992
// Author:	Herve LEGRAND
//		<hl@bravox>

#include <HLRBRep_Surface.hxx>
#include <GeomAbs_Shape.hxx>
#include <gp_Pnt.hxx>

//=======================================================================
//function : Value
//purpose  : 
//=======================================================================

inline void  HLRBRep_SLPropsATool::Value
  (const Standard_Address A,
   const Standard_Real U,
   const Standard_Real V,
   gp_Pnt& P)
{ P = ((HLRBRep_Surface*)A)->Value(U, V); }

//=======================================================================
//function : D1
//purpose  : 
//=======================================================================

inline void  HLRBRep_SLPropsATool::D1
  (const Standard_Address A, 
   const Standard_Real U,
   const Standard_Real V, 
   gp_Pnt& P,
   gp_Vec& D1U,
   gp_Vec& D1V)
{ ((HLRBRep_Surface*)A)->D1(U, V, P, D1U, D1V); }

//=======================================================================
//function : D2
//purpose  : 
//=======================================================================

inline void  HLRBRep_SLPropsATool::D2
  (const Standard_Address A, 
   const Standard_Real U,
   const Standard_Real V,
   gp_Pnt& P,
   gp_Vec& D1U,
   gp_Vec& D1V,
   gp_Vec& D2U,
   gp_Vec& D2V,
   gp_Vec& DUV)
{ ((HLRBRep_Surface*)A)->D2(U, V, P, D1U, D1V, D2U, D2V, DUV); }

//=======================================================================
//function : DN
//purpose  : 
//=======================================================================

inline gp_Vec  HLRBRep_SLPropsATool::DN
  (const Standard_Address A,
   const Standard_Real U,
   const Standard_Real V,
   const Standard_Integer Nu,
   const Standard_Integer Nv)
{ return ((HLRBRep_Surface*)A)->DN(U, V, Nu, Nv); }

//=======================================================================
//function : Continuity
//purpose  : 
//=======================================================================

inline Standard_Integer  HLRBRep_SLPropsATool::Continuity
  (const Standard_Address)
{ return 2; } // et boum ! cky le 27 - 04 - 1993

//=======================================================================
//function : Bounds
//purpose  : 
//=======================================================================

inline void  HLRBRep_SLPropsATool::Bounds
  (const Standard_Address, 
   Standard_Real& U1,
   Standard_Real& V1,
   Standard_Real& U2,
   Standard_Real& V2)
{
  U1 = V1 = RealFirst();
  U2 = V2 = RealLast();
}