1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-26 11:05:31 +03:00
occt/tests/bugs/step/bug25523
ink bcf045cfdc 0025523: Fail to read back solid written to STEP
Fixed a exception occurred during reading step file

Test case for issue CR25523
2015-01-15 14:53:44 +03:00

47 lines
940 B
Plaintext
Executable File

puts "============"
puts "OCC25523"
puts "============"
puts ""
#######################################################################
# Fail to read back solid written to STEP
#######################################################################
restore [locate_data_file bug25523_bad_loopback_step.brep] a
nbshapes a
set nbshapes_expected "
Number of shapes in a
VERTEX : 30
EDGE : 54
WIRE : 32
FACE : 27
SHELL : 1
SOLID : 1
COMPSOLID : 0
COMPOUND : 0
SHAPE : 145
"
checknbshapes a ${nbshapes_expected} 0 "Stator model"
newmodel
set aFile ${imagedir}/bug25523.stp
catch { file delete ${aFile} }
stepwrite a a ${aFile}
stepread ${aFile} b *
nbshapes b_1 ;# empty compound
checknbshapes b_1 ${nbshapes_expected} 0 "Stator model"
tpstat c ;# reports exception
vinit View1
vdisplay a
vfit
vdump ${imagedir}/${casename}_1.png
vinit View2
vdisplay b_1
vfit
vdump ${imagedir}/${casename}_2.png