From c3d250cc97c3e1a8df8d1c0b660e09a3ec31775c Mon Sep 17 00:00:00 2001 From: msv Date: Wed, 25 Oct 2017 17:49:10 +0300 Subject: [PATCH] # reduce enlarging by half to avoid regressions on some blend tests. --- src/GeomPlate/GeomPlate_MakeApprox.cxx | 4 ++-- tests/bugs/modalg_7/bug29257_1 | 2 +- tests/bugs/modalg_7/bug29257_2 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GeomPlate/GeomPlate_MakeApprox.cxx b/src/GeomPlate/GeomPlate_MakeApprox.cxx index 92404a74ac..5efaefab08 100644 --- a/src/GeomPlate/GeomPlate_MakeApprox.cxx +++ b/src/GeomPlate/GeomPlate_MakeApprox.cxx @@ -257,8 +257,8 @@ GeomPlate_MakeApprox::GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& Surf Standard_Real U0=0., U1=0., V0=0., V1=0.; myPlate->RealBounds(U0, U1, V0, V1); - Standard_Real aDU = (U1 - U0) * (EnlargeCoeff - 1); - Standard_Real aDV = (V1 - V0) * (EnlargeCoeff - 1); + Standard_Real aDU = (U1 - U0) * (EnlargeCoeff - 1) * 0.5; + Standard_Real aDV = (V1 - V0) * (EnlargeCoeff - 1) * 0.5; U0 = U0 - aDU; U1 = U1 + aDU; V0 = V0 - aDV; diff --git a/tests/bugs/modalg_7/bug29257_1 b/tests/bugs/modalg_7/bug29257_1 index 58b77b0ebf..272d4157e3 100644 --- a/tests/bugs/modalg_7/bug29257_1 +++ b/tests/bugs/modalg_7/bug29257_1 @@ -44,7 +44,7 @@ don a_1 new_edges # compute plate surface pullupface r a_1 old_edges new_edges a_2 -bnd -order 1 -mr 0.4 -step 0.4 -deg 3 -enlarge 1.1 -checkprops r -s 341.201 +checkprops r -s 286.683 # check distance from vertices of the initial face to the new face foreach v [explode a_1 v] { diff --git a/tests/bugs/modalg_7/bug29257_2 b/tests/bugs/modalg_7/bug29257_2 index 0dd46e8ae6..63e2a3f800 100644 --- a/tests/bugs/modalg_7/bug29257_2 +++ b/tests/bugs/modalg_7/bug29257_2 @@ -44,7 +44,7 @@ don a_1 new_edges # compute plate surface pullupface r a_1 old_edges new_edges a_2 -bnd -order 1 -mr 0.4 -step 0.2 -deg 3 -enlarge 1.1 -checkprops r -s 10.5986 +checkprops r -s 9.02637 # check distance from vertices of the initial face to the new face foreach v [explode a_1 v] { -- 2.39.5