Salome HOME
[bos #33377] EDF 25230 - Question about tolerance. Prevent conversion of initial...
authorjfa <jfa@opencascade.com>
Thu, 9 Feb 2023 15:29:47 +0000 (15:29 +0000)
committerjfa <jfa@opencascade.com>
Thu, 9 Feb 2023 15:29:47 +0000 (15:29 +0000)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx

index 7b5ebe6c8f570d1f3d2ed45c5ec980c43b3e414d..f7f24c3785aeef40732c7c43b2bf4fcaa29a9117 100644 (file)
@@ -1127,7 +1127,6 @@ TopoDS_Wire GEOMImpl_ShapeDriver::MakeWireFromEdges(const Handle(TColStd_HSequen
   }
 
   // IMP 0019766: Building a Wire from unconnected edges by introducing a tolerance
-  // aaajfa
   bool isClosed = false;
   Handle(ShapeAnalysis_Wire) asaw = aFW->Analyzer();
   if (asaw->CheckGap3d(1)) { // between last and first edges
@@ -1136,15 +1135,15 @@ TopoDS_Wire GEOMImpl_ShapeDriver::MakeWireFromEdges(const Handle(TColStd_HSequen
       isClosed = true;
   }
   aFW->ClosedWireMode() = isClosed;
-  // aaajfa
-  //aFW->ClosedWireMode() = Standard_False;
   aFW->FixConnected(theTolerance);
   if (aFW->StatusConnected(ShapeExtend_FAIL)) {
     Standard_ConstructionError::Raise("Wire construction failed: cannot build connected wire");
   }
   // IMP 0019766
+
   if (aFW->StatusConnected(ShapeExtend_DONE3)) {
     // Confused with <prec> but not Analyzer.Precision(), set the same
+    aFW->SetPrecision(theTolerance); // bos #33377, prevent conversion of initial curves to BSplines
     aFW->FixGapsByRangesMode() = Standard_True;
     if (aFW->FixGaps3d()) {
       Handle(ShapeExtend_WireData) sbwd = aFW->WireData();