mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0028345: Data Exchange - Reading STEP model using STEPCAF crashes
# Add test to verify import * Note: Each layer contains a valid name, but only one contains a link to the shape, so .step file contains only one valid Layer.
This commit is contained in:
parent
c28d4a89d4
commit
078f916446
15
tests/bugs/step/bug28345
Normal file
15
tests/bugs/step/bug28345
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
puts "# ====================================================================="
|
||||||
|
puts "# 0028345: Data Exchange - Reading STEP model using STEPCAF crashes"
|
||||||
|
puts "# ====================================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
pload DCAF
|
||||||
|
ReadStep D_1 [locate_data_file bug28345_30338.stp]
|
||||||
|
|
||||||
|
# Check imported names
|
||||||
|
set info [XGetAllLayers D_1]
|
||||||
|
if { [regexp "COMPONENTS" $info] != 1 } {
|
||||||
|
puts "Error : wrong layer name"
|
||||||
|
}
|
||||||
|
|
||||||
|
Close D_1
|
Loading…
x
Reference in New Issue
Block a user