From: ifv Date: Tue, 16 Jun 2020 11:48:14 +0000 (+0300) Subject: Test commit X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=5cd88c0fc71477d5a838f2f6c2b294d8a5430fc3;p=occt-copy.git Test commit --- diff --git a/src/IntTools/IntTools_TopolTool.cxx b/src/IntTools/IntTools_TopolTool.cxx index 863e0687fc..9c5eaf65a1 100644 --- a/src/IntTools/IntTools_TopolTool.cxx +++ b/src/IntTools/IntTools_TopolTool.cxx @@ -246,6 +246,20 @@ void IntTools_TopolTool::ComputeSamplePoints() } if(nbsu < 10) nbsu = 10; if(nbsv < 10) nbsv = 10; + // Check anisotropy + Standard_Real anULen = (usup - uinf) / myS->UResolution(1.); + Standard_Real anVLen = (vsup - vinf) / myS->VResolution(1.); + Standard_Real aRatio = anULen / anVLen; + if (aRatio >= 10.) + { + nbsu *= 5; + nbsu = Min(nbsu, aMaxNbSample); + } + else if (aRatio <= 0.1 ) + { + nbsv *= 5; + nbsv = Min(nbsv, aMaxNbSample); + } } break; case GeomAbs_SurfaceOfExtrusion: {