]> SALOME platform Git repositories - modules/geom.git/commit - src/SKETCHER/Sketcher_Utils.cxx
Salome HOME
Methods 'CurveCreator_Utils::constructShape' and
authorabk <abk@opencascade.com>
Wed, 24 Jun 2015 18:20:39 +0000 (21:20 +0300)
committerabk <abk@opencascade.com>
Wed, 24 Jun 2015 18:22:41 +0000 (21:22 +0300)
commitc3778fc96ed24ce5cf1ef7f3fca152390c6c279f
treec710841ae7a3cde53f60734c444411ca163644cb
parent047d8bf632f19f16e097ef80fba5f6345ccf0b0d
Methods 'CurveCreator_Utils::constructShape' and
'Sketcher_Utils::MakeInterpolation' were changed to interpolate each spline
section by the cubic B-spline passing through the control points that the
tangent vector in each control point P is calculated by the following way:
- if point P is preceded by a control point A and is followed by a control point
  B then the tangent vector is equal to (P - A) / |P - A| + (B - P) / |B - P|;
- if point P is preceded by a control point A but is not followed by any control
  point then the tangent vector is equal to P - A;
- if point P is followed by a control point B but is not preceded by any control
  point then the tangent vector is equal to B - P.
src/CurveCreator/CurveCreator_Utils.cxx
src/SKETCHER/Sketcher_Utils.cxx