From 5cd88c0fc71477d5a838f2f6c2b294d8a5430fc3 Mon Sep 17 00:00:00 2001 From: ifv Date: Tue, 16 Jun 2020 14:48:14 +0300 Subject: [PATCH] Test commit --- src/IntTools/IntTools_TopolTool.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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: { -- 2.39.5