mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +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:
@@ -442,14 +442,12 @@ Standard_Boolean ShapeFix_Wire::FixReorder()
|
|||||||
ShapeAnalysis_WireOrder sawo;
|
ShapeAnalysis_WireOrder sawo;
|
||||||
myAnalyzer->CheckOrder ( sawo, myClosedMode, Standard_True );
|
myAnalyzer->CheckOrder ( sawo, myClosedMode, Standard_True );
|
||||||
|
|
||||||
//:abv revolCuts.sat -23: in case of bi-periodic surface check case
|
// Check case of reversed wire specifically. This is necessary because degenerated
|
||||||
// of reversed wire specifically. This is necessary because degenerated
|
|
||||||
// cases are possible when direct evaluation will give bad result.
|
// cases are possible when direct evaluation will give bad result.
|
||||||
Standard_Boolean isReorder = Standard_False;
|
Standard_Boolean isReorder = Standard_False;
|
||||||
if ( sawo.Status() != 0 &&
|
if ( sawo.Status() != 0 && ! myAnalyzer->Surface().IsNull() &&
|
||||||
! myAnalyzer->Surface().IsNull() &&
|
(myAnalyzer->Surface()->Surface()->IsUPeriodic() ||
|
||||||
myAnalyzer->Surface()->Surface()->IsUPeriodic() &&
|
myAnalyzer->Surface()->Surface()->IsVPeriodic())) {
|
||||||
myAnalyzer->Surface()->Surface()->IsVPeriodic() ) {
|
|
||||||
Handle(ShapeExtend_WireData) sbwd2 = new ShapeExtend_WireData;
|
Handle(ShapeExtend_WireData) sbwd2 = new ShapeExtend_WireData;
|
||||||
for ( Standard_Integer i=WireData()->NbEdges(); i >=1; i-- )
|
for ( Standard_Integer i=WireData()->NbEdges(); i >=1; i-- )
|
||||||
sbwd2->Add ( WireData()->Edge(i) );
|
sbwd2->Add ( WireData()->Edge(i) );
|
||||||
|
@@ -31,7 +31,8 @@
|
|||||||
#include <BRep_TEdge.hxx>
|
#include <BRep_TEdge.hxx>
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
#include <ElCLib.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 <Geom_Curve.hxx>
|
||||||
#include <gp_Dir.hxx>
|
#include <gp_Dir.hxx>
|
||||||
#include <Geom_Plane.hxx>
|
#include <Geom_Plane.hxx>
|
||||||
|
Reference in New Issue
Block a user