1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

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.
This commit is contained in:
nbv
2017-05-10 17:22:18 +03:00
committed by abv
parent 1709b02450
commit ff3f03870b
8 changed files with 47 additions and 21 deletions

View File

@@ -511,7 +511,7 @@ Standard_Boolean GeomAdaptor_Curve::IsClosed() const
Standard_Boolean GeomAdaptor_Curve::IsPeriodic() const
{
return (myCurve->IsPeriodic()? IsClosed() : Standard_False);
return myCurve->IsPeriodic();
}
//=======================================================================