diff --git a/src/ShapeFix/ShapeFix_Wire.cxx b/src/ShapeFix/ShapeFix_Wire.cxx index fcfe71b8e9..a81d9d7624 100644 --- a/src/ShapeFix/ShapeFix_Wire.cxx +++ b/src/ShapeFix/ShapeFix_Wire.cxx @@ -442,14 +442,12 @@ Standard_Boolean ShapeFix_Wire::FixReorder() ShapeAnalysis_WireOrder sawo; myAnalyzer->CheckOrder ( sawo, myClosedMode, Standard_True ); - //:abv revolCuts.sat -23: in case of bi-periodic surface check case - // of reversed wire specifically. This is necessary because degenerated + // Check case of reversed wire specifically. This is necessary because degenerated // cases are possible when direct evaluation will give bad result. Standard_Boolean isReorder = Standard_False; - if ( sawo.Status() != 0 && - ! myAnalyzer->Surface().IsNull() && - myAnalyzer->Surface()->Surface()->IsUPeriodic() && - myAnalyzer->Surface()->Surface()->IsVPeriodic() ) { + if ( sawo.Status() != 0 && ! myAnalyzer->Surface().IsNull() && + (myAnalyzer->Surface()->Surface()->IsUPeriodic() || + myAnalyzer->Surface()->Surface()->IsVPeriodic())) { Handle(ShapeExtend_WireData) sbwd2 = new ShapeExtend_WireData; for ( Standard_Integer i=WireData()->NbEdges(); i >=1; i-- ) sbwd2->Add ( WireData()->Edge(i) ); diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx index ff47e2fcd7..116b0ce21e 100644 --- a/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx @@ -31,7 +31,8 @@ #include #include #include -#include #include +#include +#include #include #include #include