mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024921: ShapeAnalysis_Curve::ValidateRange doesn't adjust the range for periodic curves
Fix the sequence of conditional checks and always try to adjust the range for periodic curves
This commit is contained in:
parent
3f5bebe804
commit
72952ef2b8
@ -506,11 +506,13 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (First < Last) return Standard_True;
|
|
||||||
|
|
||||||
// 15.11.2002 PTV OCC966
|
// 15.11.2002 PTV OCC966
|
||||||
if (ShapeAnalysis_Curve::IsPeriodic(theCurve))
|
if (ShapeAnalysis_Curve::IsPeriodic(theCurve)) {
|
||||||
ElCLib::AdjustPeriodic(cf,cl,Precision::PConfusion(),First,Last); //:a7 abv 11 Feb 98: preci -> PConfusion()
|
ElCLib::AdjustPeriodic(cf,cl,Precision::PConfusion(),First,Last); //:a7 abv 11 Feb 98: preci -> PConfusion()
|
||||||
|
}
|
||||||
|
else if (First < Last) {
|
||||||
|
// nothing to fix
|
||||||
|
}
|
||||||
else if (theCurve->IsClosed()) {
|
else if (theCurve->IsClosed()) {
|
||||||
// l'un des points projecte se trouve sur l'origine du parametrage
|
// l'un des points projecte se trouve sur l'origine du parametrage
|
||||||
// de la courbe 3D. L algo a donne cl +- preci au lieu de cf ou vice-versa
|
// de la courbe 3D. L algo a donne cl +- preci au lieu de cf ou vice-versa
|
||||||
|
Loading…
x
Reference in New Issue
Block a user