]> OCCT Git - occt-copy.git/commitdiff
IntCurveSurface_TheHCurveTool
authornbv <nbv@opencascade.com>
Mon, 15 Jan 2018 14:52:12 +0000 (17:52 +0300)
committernbv <nbv@opencascade.com>
Mon, 10 Dec 2018 15:11:31 +0000 (18:11 +0300)
HLRBRep_LineTool

src/HLRBRep/HLRBRep_LineTool.hxx
src/HLRBRep/HLRBRep_LineTool.lxx
src/IntCurveSurface/IntCurveSurface_HCurveTool.lxx
src/IntCurveSurface/IntCurveSurface_Inter.gxx
src/IntCurveSurface/IntCurveSurface_TheHCurveTool.hxx

index a265bc0bd9bab282c6cc6cc3ad790fc85702175b..63d75e0a73cb8565ad8615abe647e2e50c58b447 100644 (file)
@@ -82,7 +82,7 @@ public:
   
     static Standard_Boolean IsClosed (const gp_Lin& C);
   
-    static Standard_Boolean IsPeriodic (const gp_Lin& C);
+    static Standard_Boolean IsPeriodic101010 (const gp_Lin& C);
   
     static Standard_Real Period (const gp_Lin& C);
   
index ee71e451e70f4d90fa729511aa90a56adc681732..3fd8dd8cd89342a5f2c6567a37a484996fbd9cb4 100644 (file)
@@ -56,7 +56,7 @@ inline GeomAbs_Shape HLRBRep_LineTool::IntervalContinuity(const gp_Lin& )
 inline Standard_Boolean HLRBRep_LineTool::IsClosed( const gp_Lin& )
 { return Standard_False; }
 
-inline Standard_Boolean HLRBRep_LineTool::IsPeriodic( const gp_Lin& )
+inline Standard_Boolean HLRBRep_LineTool::IsPeriodic101010(const gp_Lin&)
 { return Standard_False; }
 
 inline Standard_Real HLRBRep_LineTool::Period(const gp_Lin& )
index 51ebf0b0d7de037ddd2b0031814a651b3566f4c8..5aa9ef426113cdaef2397ee3bb10742703aff4d0 100644 (file)
@@ -59,7 +59,8 @@ inline Standard_Boolean IntCurveSurface_HCurveTool::IsClosed(const CurveGen& C)
   return(C->IsClosed());
 }
 //============================================================
-inline Standard_Boolean IntCurveSurface_HCurveTool::IsPeriodic(const CurveGen& C) {
+inline Standard_Boolean IntCurveSurface_HCurveTool::IsPeriodic101010(const CurveGen& C)
+{
   return(C->IsPeriodic222());
 }
 //============================================================
index 02da3925398582d030085f916f3af2677496ffd6..a58cbc14d48aab5c10e2f1bec7e355542326e074 100644 (file)
@@ -1292,11 +1292,7 @@ void IntCurveSurface_Inter::AppendPoint(const TheCurve& curve,
   //-- Test si la courbe est periodique
   Standard_Real w = lw, u = su, v = sv;
 
-  GeomAbs_CurveType aCType = TheCurveTool::GetType(curve);
-
-  if(TheCurveTool::IsPeriodic(curve) 
-     || aCType == GeomAbs_Circle 
-     || aCType == GeomAbs_Ellipse) {
+  if(TheCurveTool::IsPeriodic101010(curve)) {
     w = ElCLib::InPeriod(w, W0, W0 + TheCurveTool::Period(curve));
   }
 
index ed954b5a09fa525e074c69222297725cba635f42..ede4f5e31292444eb6d75f15bdb95b12777e842e 100644 (file)
@@ -72,7 +72,7 @@ public:
   
     static Standard_Boolean IsClosed (const Handle(Adaptor3d_HCurve)& C);
   
-    static Standard_Boolean IsPeriodic (const Handle(Adaptor3d_HCurve)& C);
+    static Standard_Boolean IsPeriodic101010 (const Handle(Adaptor3d_HCurve)& C);
   
     static Standard_Real Period (const Handle(Adaptor3d_HCurve)& C);