From 4ad9a0dd6a7920d02a2affdee7df2bc41990a44a Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 19 Dec 2017 15:44:49 +0300 Subject: [PATCH] Working version --- src/BlockFix/BlockFix_BlockFixAPI.cxx | 29 --------------------------- src/BlockFix/BlockFix_UnionFaces.cxx | 4 ++-- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/src/BlockFix/BlockFix_BlockFixAPI.cxx b/src/BlockFix/BlockFix_BlockFixAPI.cxx index 7dcb72080..c6d6d3221 100644 --- a/src/BlockFix/BlockFix_BlockFixAPI.cxx +++ b/src/BlockFix/BlockFix_BlockFixAPI.cxx @@ -29,9 +29,6 @@ #include #include #include -#include - -#include #include @@ -69,30 +66,6 @@ void BlockFix_BlockFixAPI::Perform() // with singularities on boundaries by filling myShape = BlockFix::RefillProblemFaces(myShape); - //Unification - // default values - Standard_Boolean anUFaces = Standard_True; - if (myOptimumNbFaces == -1) - anUFaces = Standard_False; - Standard_Boolean anUEdges = Standard_True; - Standard_Boolean anConBS = Standard_False; - Standard_Boolean isAllowInternal = Standard_False; - Standard_Boolean isSafeInputMode = Standard_True; - Standard_Real aLinTol = Precision::Confusion(); - Standard_Real aAngTol = Precision::Angular(); - TopTools_MapOfShape aMapOfShapes; - - ShapeUpgrade_UnifySameDomain Unifier; - Unifier.Initialize(myShape, anUEdges, anUFaces, anConBS); - Unifier.KeepShapes(aMapOfShapes); - Unifier.SetSafeInputMode(isSafeInputMode); - Unifier.AllowInternalEdges(isAllowInternal); - Unifier.SetLinearTolerance(aLinTol); - Unifier.SetAngularTolerance(aAngTol); - Unifier.Build(); - TopoDS_Shape aRes = Unifier.Shape(); - - /* // faces unification BlockFix_UnionFaces aFaceUnifier; aFaceUnifier.GetTolerance() = myTolerance; @@ -110,7 +83,5 @@ void BlockFix_BlockFixAPI::Perform() myShape = anEdgeUnifier.Perform(aResult,myTolerance); TopoDS_Shape aRes = BlockFix::FixRanges(myShape,myTolerance); - */ - myShape = aRes; } diff --git a/src/BlockFix/BlockFix_UnionFaces.cxx b/src/BlockFix/BlockFix_UnionFaces.cxx index 612272223..0f5d378c6 100644 --- a/src/BlockFix/BlockFix_UnionFaces.cxx +++ b/src/BlockFix/BlockFix_UnionFaces.cxx @@ -642,9 +642,9 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape) sff.SetMaxTolerance(Max(1.,myTolerance*1000.)); //Setting modes sff.FixOrientationMode() = 0; -#if OCC_VERSION_LARGE > 0x07020001 + //#if OCC_VERSION_LARGE > 0x07020001 sff.FixWireTool()->CheckMissingEdgesMode() = Standard_False; -#endif + //#endif //sff.FixWireMode() = 0; sff.SetContext(aContext); // Applying the fixes