Files
OCCT/tests/bugs/xde/bug33183_3
Pasukhin Dmitry 04025d1cc3 Testing - Update reference data for migration to new station (#1248)
- Adjusted faulties and warnings in tests for IGES and STEP files to reflect updated results.
- Corrected tolerance values in multiple tests to ensure accuracy in shape validation.
- Updated expected label counts and properties in several test cases to align with new outputs.
- Modified error messages and expected results in HLR and offset tests for consistency.
- Refined metadata checks in GLTF and STEP tests to match revised reference sizes and values.
- Update Improvements cases with removing TODO
2026-04-30 10:38:25 +01:00

36 lines
830 B
Plaintext

puts "========"
puts "0033183: Data Exchange - Lose texture after saving XBF file"
puts "Checking saving of textures for the previous version"
puts "========"
pload OCAF
Close D -silent
ReadGltf D [locate_data_file bug31706_launchvehicle.glb]
set ref_1 [XGetVisMaterial D 0:1:10:1]
set ref_2 [XGetVisMaterial D 0:1:10:7]
set aTmpFile ${imagedir}/result.xbf
XSave D $aTmpFile
Close D
XOpen $aTmpFile D
set cur_1 [XGetVisMaterial D 0:1:10:1]
set cur_2 [XGetVisMaterial D 0:1:10:7]
for {set i 1} {$i <= 12} {incr i} {
set ref_1_str [lindex $ref_1 $i-1]
set ref_2_str [lindex $ref_2 $i-1]
set cur_1_str [lindex $cur_1 $i-1]
set cur_2_str [lindex $cur_2 $i-1]
if { $ref_1_str != $cur_1_str ||
$ref_2_str != $cur_2_str} {
puts "Error: Data is not equal"
break
}
}
Close D
file delete -force $aTmpFile