File: end

package info (click to toggle)
opencascade 7.3.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 278,376 kB
  • sloc: cpp: 1,136,010; ansic: 81,569; tcl: 14,864; cs: 5,173; java: 1,522; xml: 468; sh: 375; perl: 37; makefile: 25
file content (40 lines) | stat: -rwxr-xr-x 1,527 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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"