]> OCCT Git - occt-copy.git/commit
0028724: Extrema between circle and plane cannot be found
authornbv <nbv@opencascade.com>
Wed, 10 May 2017 14:22:18 +0000 (17:22 +0300)
committernbv <nbv@opencascade.com>
Mon, 15 May 2017 07:54:26 +0000 (10:54 +0300)
commitc45a54c35539998a21d8dbf650df45d583d6fc56
treec6b1d2e612bb32fe61ea80df410c4c789b7d8b84
parentb8e5ce678e4223e3b359256067e235cbe053ad5c
0028724: Extrema between circle and plane cannot be found

The main reason of the regression is that the Extrema algorithm finds the truth extrema point but cannot adjust it to the range of given circle. It is connected with the fact that Geom(2d)Adaptor_Curve::IsPeriodic() method returns false for given circle because adaptor contains a piece of the circle which is not closed.

New algorithm of IsPeriodic() method will return the information about periodicity of the curve itself (independently of first and last parameter of adaptor).

The documentation about Geom(2d)_TrimmedCurve and Geom_RectangularTrimmedSurface has been updated in frame of the information about IsPeriodic-methods.

(cherry picked from commit b3cba642626bf141475c6e614fdc1df5e93cfcf7)
src/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx
src/GeomAdaptor/GeomAdaptor_Curve.cxx
src/GeomFill/GeomFill_NSections.cxx
tests/bugs/modalg_6/bug28724 [new file with mode: 0644]