]> OCCT Git - occt.git/commitdiff
0033356: Data Exchange - Wrong half of sphere is imported CR33356
authorika <ika@opencascade.com>
Mon, 15 May 2023 12:06:20 +0000 (13:06 +0100)
committerika <ika@opencascade.com>
Mon, 15 May 2023 12:06:20 +0000 (13:06 +0100)
src/ShapeFix/ShapeFix_Wire.hxx
src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx

index e90a0cf659c85067ba6893781b1901e5cf1b9e92..a852c3ff491c6d014f0ddc3fc160b9f4a9fc1086 100644 (file)
@@ -267,7 +267,7 @@ public:
   
   //! Performs an analysis and reorders edges in the wire using class WireOrder.
   //! Flag <theModeBoth> determines the use of miscible mode if necessary.
-  Standard_EXPORT Standard_Boolean FixReorder(Standard_Boolean theModeBoth = Standard_False);
+  Standard_EXPORT Standard_Boolean FixReorder(Standard_Boolean theModeBoth = Standard_True);
   
   //! Applies FixSmall(num) to all edges in the wire
   Standard_EXPORT Standard_Integer FixSmall (const Standard_Boolean lockvtx, const Standard_Real precsmall = 0.0);
index 252fc3a0e435f0e0a29a235a24bb2a12a0aa2019..771b27e2908901a387f574af7bbc4eba160e44e2 100644 (file)
@@ -174,7 +174,7 @@ void TopoDSToStep_MakeStepWire::Init (const TopoDS_Wire& aWire,
     const TopoDS_Wire ForwardWire = TopoDS::Wire (aWire.Oriented (TopAbs_FORWARD));
     Handle(ShapeFix_Wire) STW = new ShapeFix_Wire (ForwardWire, aTool.CurrentFace(), Precision::Confusion());
     // for toroidal like surfaces we need to use both (3d and 2d) mode to correctly reorder the edges
-    STW->FixReorder (Standard_True);
+    STW->FixReorder ();
     Handle(ShapeExtend_WireData) anExtWire = STW->WireData();
 
     //:abv 04.05.00: CAX-IF TRJ4: writing complete sphere with single vertex_loop