1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0027992: Modeling Algorithms - Extrema_ExtPS crashes on face without geometric surface

The algorithm BRepExtrema_DistShapeShape has been protected against exceptions when non-geometric shape data is given on input, like a face containing triangulation only or an edge containing polygon only. Such faces/edges are ignored by the algorithm.

BRepGProps::VolumeProperties() now ignores faces without geometric surface to avoid access violation.
This commit is contained in:
msv
2016-11-17 15:50:16 +03:00
committed by apn
parent 6dd6e5c758
commit c894a5fdfc
9 changed files with 82 additions and 7 deletions

View File

@@ -138,8 +138,7 @@ static Standard_Integer distmini(Draw_Interpretor& di, Standard_Integer n, const
}
else di << "probleme\n";
//else cout << "probleme"<< endl;
else di << "problem: no distance is found\n";
return 0;
}