1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
ifv
5cd88c0fc7 Test commit 2020-06-16 14:48:14 +03:00

View File

@@ -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: {