From: nbv Date: Mon, 15 Jan 2018 14:52:12 +0000 (+0300) Subject: IntCurveSurface_TheHCurveTool X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=1fcb1314a5cde4418630d64db070f2714ba0f88b;p=occt-copy.git IntCurveSurface_TheHCurveTool HLRBRep_LineTool --- diff --git a/src/HLRBRep/HLRBRep_LineTool.hxx b/src/HLRBRep/HLRBRep_LineTool.hxx index a265bc0bd9..63d75e0a73 100644 --- a/src/HLRBRep/HLRBRep_LineTool.hxx +++ b/src/HLRBRep/HLRBRep_LineTool.hxx @@ -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); diff --git a/src/HLRBRep/HLRBRep_LineTool.lxx b/src/HLRBRep/HLRBRep_LineTool.lxx index ee71e451e7..3fd8dd8cd8 100644 --- a/src/HLRBRep/HLRBRep_LineTool.lxx +++ b/src/HLRBRep/HLRBRep_LineTool.lxx @@ -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& ) diff --git a/src/IntCurveSurface/IntCurveSurface_HCurveTool.lxx b/src/IntCurveSurface/IntCurveSurface_HCurveTool.lxx index 51ebf0b0d7..5aa9ef4261 100644 --- a/src/IntCurveSurface/IntCurveSurface_HCurveTool.lxx +++ b/src/IntCurveSurface/IntCurveSurface_HCurveTool.lxx @@ -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()); } //============================================================ diff --git a/src/IntCurveSurface/IntCurveSurface_Inter.gxx b/src/IntCurveSurface/IntCurveSurface_Inter.gxx index 02da392539..a58cbc14d4 100644 --- a/src/IntCurveSurface/IntCurveSurface_Inter.gxx +++ b/src/IntCurveSurface/IntCurveSurface_Inter.gxx @@ -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)); } diff --git a/src/IntCurveSurface/IntCurveSurface_TheHCurveTool.hxx b/src/IntCurveSurface/IntCurveSurface_TheHCurveTool.hxx index ed954b5a09..ede4f5e312 100644 --- a/src/IntCurveSurface/IntCurveSurface_TheHCurveTool.hxx +++ b/src/IntCurveSurface/IntCurveSurface_TheHCurveTool.hxx @@ -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);