mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Create a general draw command 'VRelation' and drop the old 'relation' commands. Add test cases for new draw command "vrelation". Add two new methods: Activate and Deactivate which activate/deactivate the given selection mode for all displayed objects. Eliminate deprecated local context methods in ObjectCommands, QABugs. Eliminate deprecated local context methods in mfc standard sample and qt samples.
41 lines
1.5 KiB
Plaintext
Executable File
41 lines
1.5 KiB
Plaintext
Executable File
if { [info exists subgroup] && $subgroup != "motion" && $subgroup != "ivtk" && $subgroup != "dimensions" } {
|
|
catch { vfit }
|
|
}
|
|
if { [info exists subgroup] && $subgroup == "raytrace" } {
|
|
|
|
# dump final image for raytraced visualization tests
|
|
if { ![info exists to_dump_screen] || $to_dump_screen == 1 } {
|
|
catch { set render_parameters [vrenderparams] }
|
|
catch { set stereo_parameters [vstereo] }
|
|
|
|
# for global illumination mode accumulate frames before dumping
|
|
regexp {renderMode *: *([A-Za-z]+)} $render_parameters full renderMode
|
|
regexp {GI *: *([A-Za-z]+)} $render_parameters full gi_enabled
|
|
if { [string equal -nocase "raytrace" $renderMode] && [string equal -nocase "on" $gi_enabled] } {
|
|
vfps 200
|
|
}
|
|
|
|
set dump_options {}
|
|
regexp {Stereo *([A-Za-z]+)} $stereo_parameters full stereo_enabled
|
|
regexp {Mode *([A-Za-z]+)} $stereo_parameters full stereo_mode
|
|
if { [string equal -nocase "on" $stereo_enabled] } {
|
|
set dump_options {-stereo blend}
|
|
}
|
|
|
|
if { [ catch { vdump $imagedir/${test_image}.png {*}$dump_options } catch_result ] } {
|
|
puts $catch_result
|
|
}
|
|
}
|
|
} elseif { [info exists subgroup] && $subgroup == "dimensions" } {
|
|
# skip these test cases.
|
|
} elseif { ![info exists subgroup] || $subgroup != "mesh" } {
|
|
|
|
# dump final image for common visualization tests
|
|
if { ![info exists to_dump_screen] && [ catch { vdump $imagedir/${test_image}.png } catch_result ] } {
|
|
puts $catch_result
|
|
}
|
|
}
|
|
catch { vglinfo }
|
|
|
|
puts "TEST COMPLETED"
|