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

0022766: Wrong results done by several algorithms for the case of intersection between a surface of revolution and a plane

Add test case for this fix
This commit is contained in:
ifv
2013-05-16 11:38:13 +04:00
parent cf3327f417
commit 12f139fde8
2 changed files with 22 additions and 0 deletions

View File

@@ -180,6 +180,13 @@ Standard_Boolean MyDirFunction::Value(const math_Vector& Sol,
F2 = 0.5 * (FF.Norm2());
GH.TMultiply(DF, FF);
for(Standard_Integer i = GH.Lower(); i <= GH.Upper(); i++)
{
if(Precision::IsInfinite((GH.Value(i))))
{
return Standard_False;
}
}
Gnr1 = GH.Norm2();
return Standard_True;
}