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

0025810: Exception in extrema operation.

Fixed computation of number of analytic intersection points.

Test case for issue CR25810
This commit is contained in:
aml
2015-02-12 12:04:55 +03:00
committed by bugmaster
parent e32045fd71
commit fc0180e5f3
2 changed files with 18 additions and 3 deletions

View File

@@ -361,9 +361,9 @@ void Extrema_ExtElCS::Perform(const gp_Circ& C,
// Check whether two objects have intersection points
IntAna_Quadric aCylQuad(S);
IntAna_IntConicQuad aCircCylInter(C, aCylQuad);
Standard_Integer aNbInter = aCircCylInter.NbPoints();
if (!aCircCylInter.IsDone())
aNbInter = 0;
Standard_Integer aNbInter = 0;
if (aCircCylInter.IsDone())
aNbInter = aCircCylInter.NbPoints();
// Compute the extremas.
myNbExt = 2*aNbExt + aNbInter;