1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0033356: Data Exchange - Wrong half of sphere is imported

Do the check of tail-head ordered wire not only for bi-periodical surface.
This commit is contained in:
ika
2023-05-12 11:57:21 +01:00
parent bd18928c34
commit 5e2bdb0894
2 changed files with 6 additions and 7 deletions

View File

@@ -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) );

View File

@@ -31,7 +31,8 @@
#include <BRep_TEdge.hxx>
#include <BRep_Tool.hxx>
#include <ElCLib.hxx>
#include <Geom2d_BoundedCurve.hxx>#include <Geom2d_Line.hxx>
#include <Geom2d_BoundedCurve.hxx>
#include <Geom2d_Line.hxx>
#include <Geom_Curve.hxx>
#include <gp_Dir.hxx>
#include <Geom_Plane.hxx>