]> 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)
committerabv <abv@opencascade.com>
Tue, 16 Jul 2019 10:32:44 +0000 (13:32 +0300)
commit9b0cd1bc402380b806ffeda6ec304538ed39de03
tree7b98ace9960f15745068bfced4aaa0a7609e0d2f
parente3e7dbc1b3ee7fab503622d59a162c4dbc6d0c78
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]