OCC22529 FitALL works incorrectly for small flat shapes
[occt.git] / src / Extrema / Extrema_CurveTool.cxx
1 // File:        Extrema_CurveTool.cxx
2 // Created:     Wed Jul 19 09:00:02 1995
3 // Author:      Modelistation
4 //              <model@metrox>
5
6
7 #include <Extrema_CurveTool.ixx>
8
9 //=======================================================================
10 //function : IsPeriodic
11 //purpose  : 
12 //=======================================================================
13
14 Standard_Boolean Extrema_CurveTool::IsPeriodic(const Adaptor3d_Curve& C)
15 {
16   GeomAbs_CurveType aType = GetType(C);
17   if (aType == GeomAbs_Circle ||
18       aType == GeomAbs_Ellipse)
19     return Standard_True;
20   else
21     return C.IsPeriodic();
22 }
23
24