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:
@@ -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
|
||||
|
Reference in New Issue
Block a user