1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0031191: Data Exchange - STEP import returns empty shape for a file written by SolidWorks 2018

Add a test case to verify that the .STEP is read correctly
This commit is contained in:
dpasukhi 2020-09-13 13:05:04 +03:00 committed by bugmaster
parent c6d45aceb8
commit ebfd071c3c

15
tests/bugs/step/bug31191 Normal file
View File

@ -0,0 +1,15 @@
puts "========================"
puts "0031191: Data Exchange - STEP import returns empty shape for a file written by SolidWorks 2018"
puts "========================"
# Read file
stepread [locate_data_file bug31191.stp] res *
# Checking
set state [data c]
if { [regexp "309733 Entities, of which 9046 Root" $state] != 1 } {
puts "Error : wrong count of transferred roots"
}
checknbshapes res_1 -face 4494 -shell 26 -solid 26
checkshape res_1 f