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

0028844: Regression vs 7.1.0: Exception is raised by the solid classification algorithm

Protection from normalization of the null vector.

Test cases for the issue.
This commit is contained in:
emv
2017-06-16 08:59:21 +03:00
committed by bugmaster
parent f24f542856
commit df119b4ed9
8 changed files with 106 additions and 17 deletions

View File

@@ -49,6 +49,11 @@ void IntCurve_IntCurveCurveGen::Perform(const TheCurve& C,
{
Standard_Real paraminf = TheCurveTool::FirstParameter(C);
Standard_Real paramsup = TheCurveTool::LastParameter(C);
if (Precision::IsInfinite(paraminf) && Precision::IsInfinite(paramsup)) {
done = Standard_False;
return;
}
//
if(paraminf>-Precision::Infinite()) {
if(paramsup<Precision::Infinite()) {
//-- paraminf-----------paramsup