summaryrefslogtreecommitdiff
path: root/src/Geom2dGcc/Geom2dGcc_CurveTool.cxx
blob: bd2fcef7846cc1db3009cd462fc7b4a28781c5fb (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
#include <Geom2dGcc_CurveTool.ixx>

#include <Geom2d_Line.hxx>
#include <Geom2d_BezierCurve.hxx>
#include <gp_Pnt.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <gp_Vec.hxx>

//Template a respecter


Standard_Real Geom2dGcc_CurveTool::
  EpsX (const Geom2dAdaptor_Curve& C  ,
	const Standard_Real        Tol) {
  return C.Resolution(Tol);
}

Standard_Integer Geom2dGcc_CurveTool::
  NbSamples (const Geom2dAdaptor_Curve& /*C*/) {
  return 20;
}

gp_Pnt2d Geom2dGcc_CurveTool::Value (const Geom2dAdaptor_Curve& C,
				     const Standard_Real        U) {
  return C.Value(U);
}

Standard_Real 
  Geom2dGcc_CurveTool::FirstParameter (const Geom2dAdaptor_Curve& C) {
  return C.FirstParameter();
}

Standard_Real 
  Geom2dGcc_CurveTool::LastParameter (const Geom2dAdaptor_Curve& C) {
  return C.LastParameter();
}

void Geom2dGcc_CurveTool::D1 (const Geom2dAdaptor_Curve& C,
			      const Standard_Real        U,
			            gp_Pnt2d&            P,
			            gp_Vec2d&            T) {

  C.D1(U,P,T);
}

void Geom2dGcc_CurveTool::D2 (const Geom2dAdaptor_Curve& C,
			      const Standard_Real        U,
			            gp_Pnt2d&            P,
			            gp_Vec2d&            T,
			            gp_Vec2d&            N) {

  C.D2(U,P,T,N);
}

void Geom2dGcc_CurveTool::D3 (const Geom2dAdaptor_Curve& C ,
			      const Standard_Real        U ,
			            gp_Pnt2d&            P ,
			            gp_Vec2d&            T ,
			            gp_Vec2d&            N ,
			            gp_Vec2d&            dN) {

  C.D3(U,P,T,N,dN);
}