1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/step/bug30533
ika 7b93ae3c5e 0030533: Data Exchange - Crash during STEP import.
Add Null checks to avoid crash during reading faces without bounds.
2019-03-03 20:58:37 +03:00

26 lines
573 B
Plaintext

puts "==================================================="
puts " 0030533: Data Exchange - Crash during STEP import."
puts "==================================================="
puts ""
pload DCAF
param read.stepcaf.subshapes.name On
ReadStep D [locate_data_file bug30533.stp]
# Check imported names
set name [GetName D 0:1:1:5:1]
if {$name != "NONE"} {
puts "Error: wrong name of subshape"
}
set name [GetName D 0:1:1:5:2]
if {$name != "NONE"} {
puts "Error: wrong name of subshape"
}
Close D
# return param to default value
param read.stepcaf.subshapes.name Off