From a4d366a393e663fbe2b8d0c3151a15f0423074df Mon Sep 17 00:00:00 2001 From: skl Date: Thu, 16 Nov 2006 13:03:06 +0000 Subject: [PATCH] Improve new version of PartitionAlgo(old script partition F3). --- src/GEOMAlgo/GEOMAlgo_WireSplitter.cxx | 28 +++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/GEOMAlgo/GEOMAlgo_WireSplitter.cxx b/src/GEOMAlgo/GEOMAlgo_WireSplitter.cxx index 201c6d0f0..3860f82fe 100755 --- a/src/GEOMAlgo/GEOMAlgo_WireSplitter.cxx +++ b/src/GEOMAlgo/GEOMAlgo_WireSplitter.cxx @@ -116,11 +116,6 @@ static Standard_Real Tolerance2D (const TopoDS_Vertex& aV, const GeomAdaptor_Surface& aGAS); -static - void UVTolerance2D (const TopoDS_Vertex& aV, - const GeomAdaptor_Surface& aGAS, - Standard_Real& aTolU, - Standard_Real& aTolV); static Standard_Integer NbWaysOut(const BOP_ListOfEdgeInfo& ); // @@ -456,7 +451,7 @@ static Standard_Integer i,j, aNb, aNbj; Standard_Real aTol, anAngleIn, anAngleOut, anAngle, aMinAngle; Standard_Real aTol2D, aTol2D2; - Standard_Real aTol2, aD2, aTolUVb, aTolVVb; + Standard_Real aTol2, aD2;//, aTolUVb, aTolVVb; Standard_Boolean anIsSameV2d, anIsSameV, anIsFound, anIsOut, anIsNotPassed; BOP_ListIteratorOfListOfEdgeInfo anIt; TopoDS_Vertex aVb; @@ -494,9 +489,13 @@ static aTol=2.*Tolerance2D(aVb, aGAS); aTol2=aTol*aTol; // + //modified by NIZNHY-PKV Tue Nov 14 16:56:19 2006f + /* UVTolerance2D(aVb, aGAS, aTolUVb, aTolVVb); aTolUVb = 2.*aTolUVb; aTolVVb = 2.*aTolVVb; + */ + //modified by NIZNHY-PKV Tue Nov 14 16:56:26 2006t // aNb=aLS.Length(); if (aNb>0) { @@ -511,7 +510,7 @@ static aBuf.Append(aEPrev); anIsSameV=aVPrev.IsSame(aVb); - anIsSameV2d = Standard_False; + anIsSameV2d=Standard_False; if (anIsSameV) { anIsSameV2d = Standard_True; @@ -519,6 +518,8 @@ static aD2=aPaPrev.SquareDistance(aPb); anIsSameV2d =aD2