OCC.Hermit module

This is used to reparameterize Rational BSplineCurves so that we can concatenate them later tobuild C1 Curves It builds and 1D-reparameterizingfunction starting from an Hermite interpolation andadding knots and modifying poles of the 1D BSplineobtained that way. The goal is to build a(u) so thatif we consider a BSpline curveN(u)f(u) = -D(u)the function a(u)D(u) has value 1 at the umin and umaxand has 0.0e0 derivative value a umin and umax.The details of the computation occuring in this packagecan be found by reading :’ Etude sur la concatenation de NURBS en vue dubalayage de surfaces’ PFE n S85 Ensam Lille

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class hermit

Bases: object

static Solution()
  • returns the correct spline a(u) which will be multiplicated with BS later.
Parameters:
  • BS (Handle_Geom_BSplineCurve &) –
  • TolPoles (float) – default value is 0.000001
  • TolKnots (float) – default value is 0.000001
Return type:

Handle_Geom2d_BSplineCurve

  • returns the correct spline a(u) which will be multiplicated with BS later.
Parameters:
  • BS (Handle_Geom2d_BSplineCurve &) –
  • TolPoles (float) – default value is 0.000001
  • TolKnots (float) – default value is 0.000001
Return type:

Handle_Geom2d_BSplineCurve

static Solutionbis()
  • returns the knots to insert to a(u) to stay with a constant sign and in the tolerances.
Parameters:
  • BS (Handle_Geom_BSplineCurve &) –
  • Knotmin (float &) –
  • Knotmax (float &) –
  • TolPoles (float) – default value is 0.000001
  • TolKnots (float) – default value is 0.000001
Return type:

void

thisown

The membership flag

hermit_Solution()
  • returns the correct spline a(u) which will be multiplicated with BS later.
Parameters:
  • BS (Handle_Geom_BSplineCurve &) –
  • TolPoles (float) – default value is 0.000001
  • TolKnots (float) – default value is 0.000001
Return type:

Handle_Geom2d_BSplineCurve

  • returns the correct spline a(u) which will be multiplicated with BS later.
Parameters:
  • BS (Handle_Geom2d_BSplineCurve &) –
  • TolPoles (float) – default value is 0.000001
  • TolKnots (float) – default value is 0.000001
Return type:

Handle_Geom2d_BSplineCurve

hermit_Solutionbis()
  • returns the knots to insert to a(u) to stay with a constant sign and in the tolerances.
Parameters:
  • BS (Handle_Geom_BSplineCurve &) –
  • Knotmin (float &) –
  • Knotmax (float &) –
  • TolPoles (float) – default value is 0.000001
  • TolKnots (float) – default value is 0.000001
Return type:

void

new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases