]> OCCT Git - occt-copy.git/commitdiff
# reduce enlarging by half to avoid regressions on some blend tests.
authormsv <msv@opencascade.com>
Wed, 25 Oct 2017 14:49:10 +0000 (17:49 +0300)
committermsv <msv@opencascade.com>
Wed, 25 Oct 2017 14:49:10 +0000 (17:49 +0300)
src/GeomPlate/GeomPlate_MakeApprox.cxx
tests/bugs/modalg_7/bug29257_1
tests/bugs/modalg_7/bug29257_2

index 92404a74ac37993cc931df8a674f6db19e120e95..5efaefab08ead7778ecddbc6fe926a8228ce1755 100644 (file)
@@ -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;
index 58b77b0ebf89e355a2af779d8adbfcca700a71e6..272d4157e353fb76dad874544fbbab7610bbc0fd 100644 (file)
@@ -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] {
index 0dd46e8ae64c0682844787a04f036e21761b9d8a..63e2a3f80017d8ec43d3edb2c2062b5466bfa161 100644 (file)
@@ -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] {