]> OCCT Git - occt-copy.git/commit
0030645: Modeling Algorithms - B-spline segmentation produces wrong parametrization
authorazv <azv@opencascade.com>
Sat, 13 Apr 2019 11:57:39 +0000 (14:57 +0300)
committerazv <azv@opencascade.com>
Wed, 24 Apr 2019 08:24:58 +0000 (11:24 +0300)
commitb833f9ae81dcdd8fd786b12d12c72d3732bf5bbe
tree784a9c3dd6c8caae92d59639f0be59dcb4048940
parent99c3e8934286d0e71434c734c23cc325935012f9
0030645: Modeling Algorithms - B-spline segmentation produces wrong parametrization

Method Segment() of B-spline curve and surface has been extended by parameter theTolerance (theUTolerance and theVTolerance for surface), which defines the proximity between knots of a NURBS and boundaries of cutting segment. The default value of the tolerance is Precision::PConfusion().
Test cases have been added to check segmenting of B-spline surface and curves both 2D and 3D.
12 files changed:
src/BndLib/BndLib_Add3dCurve.cxx
src/Geom/Geom_BSplineCurve.cxx
src/Geom/Geom_BSplineCurve.hxx
src/Geom/Geom_BSplineSurface.cxx
src/Geom/Geom_BSplineSurface.hxx
src/Geom2d/Geom2d_BSplineCurve.cxx
src/Geom2d/Geom2d_BSplineCurve.hxx
src/GeomliteTest/GeomliteTest_CurveCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
tests/bugs/modalg_7/bug30645_1 [new file with mode: 0644]
tests/bugs/modalg_7/bug30645_2 [new file with mode: 0644]
tests/bugs/modalg_7/bug30645_3 [new file with mode: 0644]