1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0031616: Modeling algorithm - Section between two shells returns wire with gaps (720)

Adaptor3d_TopolTool.cxx, IntTools_TopolTool.cxx:

Anisotropy of BSpline surface along U and V direction is taken in account for calculation of numbers of sample points;

bug31616: test case added
This commit is contained in:
ifv
2020-06-17 17:10:12 +03:00
committed by bugmaster
parent 832a6f4412
commit 79e9ba31d2
3 changed files with 62 additions and 12 deletions

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 *= 2;
nbsu = Min(nbsu, aMaxNbSample);
}
else if (aRatio <= 0.1 )
{
nbsv *= 2;
nbsv = Min(nbsv, aMaxNbSample);
}
}
break;
case GeomAbs_SurfaceOfExtrusion: {