From: ika Date: Mon, 15 May 2023 12:06:20 +0000 (+0100) Subject: 0033356: Data Exchange - Wrong half of sphere is imported X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6231958ddc5ee0f2dfd57e837184c125948d832d;p=occt.git 0033356: Data Exchange - Wrong half of sphere is imported --- diff --git a/src/ShapeFix/ShapeFix_Wire.hxx b/src/ShapeFix/ShapeFix_Wire.hxx index e90a0cf659..a852c3ff49 100644 --- a/src/ShapeFix/ShapeFix_Wire.hxx +++ b/src/ShapeFix/ShapeFix_Wire.hxx @@ -267,7 +267,7 @@ public: //! Performs an analysis and reorders edges in the wire using class WireOrder. //! Flag 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); diff --git a/src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx b/src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx index 252fc3a0e4..771b27e290 100644 --- a/src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx +++ b/src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx @@ -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