1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/step/bug31550
kgv 30fa5f6713 0032705: Test - name clashes within temporary files within bugs/caf/bug23766_X
Several test cases writing temporary files have been corrected.
2021-12-02 21:14:57 +03:00

39 lines
1.0 KiB
Plaintext

puts "===================================="
puts "OCC31550: Surface transparency is ignored"
puts "===================================="
# Step file
set filename [locate_data_file bug29525_rev_part_neu_01.prt_converted_from_datakit.stp]
# Read file
if { [catch { ReadStep D ${filename} } result] } {
puts "ERROR: Couldn't read ${filename} file"
}
# Static data
set Transparency 0.5
set TempFilename ${imagedir}/${casename}_temp.stp
# Get colors
set Colors [XGetAllColors D]
if { [string first ${Transparency} ${Colors}] == -1 } {
puts "ERROR: OCC31550 is reproduced while STEP import."
}
# Write file
if { [catch { WriteStep D ${TempFilename} } result] } {
puts "ERROR: Couldn't write ${TempFilename} file"
}
# Read temporary file
if { [catch { ReadStep D1 ${TempFilename} } result] } {
puts "ERROR: Couldn't read ${TempFilename} file"
}
file delete -force $TempFilename
# Get colors
set Colors [XGetAllColors D1]
if { [string first ${Transparency} ${Colors}] == -1 } {
puts "ERROR: OCC31550 is reproduced while STEP export."
}