blob: 2a1caaa84abdf986402c347e7b895b9904246aa4 (
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
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Hermit_HeaderFile
#define _Hermit_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Handle_Geom2d_BSplineCurve_HeaderFile
#include <Handle_Geom2d_BSplineCurve.hxx>
#endif
#ifndef _Handle_Geom_BSplineCurve_HeaderFile
#include <Handle_Geom_BSplineCurve.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class Geom2d_BSplineCurve;
class Geom_BSplineCurve;
//! This is used to reparameterize Rational BSpline <br>
//! Curves so that we can concatenate them later to <br>
//! build C1 Curves It builds and 1D-reparameterizing <br>
//! function starting from an Hermite interpolation and <br>
//! adding knots and modifying poles of the 1D BSpline <br>
//! obtained that way. The goal is to build a(u) so that <br>
//! if we consider a BSpline curve <br>
//! N(u) <br>
//! f(u) = ----- <br>
//! D(u) <br>
//! <br>
//! the function a(u)D(u) has value 1 at the umin and umax <br>
//! and has 0.0e0 derivative value a umin and umax. <br>
//! The details of the computation occuring in this package <br>
//! can be found by reading : <br>
//! " Etude sur la concatenation de NURBS en vue du <br>
//! balayage de surfaces" PFE n S85 Ensam Lille <br>
class Hermit {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
Standard_EXPORT static Handle_Geom2d_BSplineCurve Solution(const Handle(Geom_BSplineCurve)& BS,const Standard_Real TolPoles = 0.000001,const Standard_Real TolKnots = 0.000001) ;
Standard_EXPORT static Handle_Geom2d_BSplineCurve Solution(const Handle(Geom2d_BSplineCurve)& BS,const Standard_Real TolPoles = 0.000001,const Standard_Real TolKnots = 0.000001) ;
//!returns the knots to insert to a(u) to <br>
//! stay with a constant sign and in the <br>
//! tolerances. <br>
Standard_EXPORT static void Solutionbis(const Handle(Geom_BSplineCurve)& BS,Standard_Real& Knotmin,Standard_Real& Knotmax,const Standard_Real TolPoles = 0.000001,const Standard_Real TolKnots = 0.000001) ;
protected:
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|