1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_6/bug27992
msv c894a5fdfc 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.
2016-11-17 18:49:36 +03:00

18 lines
400 B
Plaintext

puts "========"
puts "OCC27992"
puts "========"
puts ""
#################################################
# Extrema_ExtPS crashes on face without geometric surface
#################################################
restore [locate_data_file bug27821_nullsurf.brep] a
# check for exceptions for vertex-face
vertex v 0 0 0
distmini d v a
# check for exceptions for face-face
tcopy a b
distmini d a b