File: end

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (47 lines) | stat: -rw-r--r-- 1,413 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
41
42
43
44
45
46
47
set shouldFailed 0

if { $group eq "dist_angle" && $command eq "chamf" } {
  if { ($test_image eq "A3" && $chamf_shape eq "test-fillet.brep") ||
       ($test_image eq "E5" && $chamf_shape eq "CCH_testchet.rle") ||
       ($test_image eq "A1" && $chamf_shape eq "CCH_001_ahdb.rle") ||
       ($test_image eq "A4" && $chamf_shape eq "test-fillet.brep") ||
       ($test_image eq "A5" && $chamf_shape eq "test-fillet.brep") } {
    set shouldFailed 1
  }
} elseif { $group eq "dist_angle" && $command eq "chamf_sequence" } {
  if { ($test_image eq "A1" && $chamf_shape eq "CCH_001_ahdb.rle") ||
       ($test_image eq "A4" && $chamf_shape eq "test-fillet.brep") } {
    set shouldFailed 1
  }
}

if {$shouldFailed} {
  puts "TODO OCC33548 Windows: compute of chamfer failed"
}

restore [locate_data_file $chamf_shape] sh
if { [dval SCALE] != 0 } {
   tscale sh 0 0 0 SCALE
}
explode sh F
renamevar sh Ed
explode Ed E

if { [string compare $group "dist_angle"] == 0 } {
   set chamf_type A
   set chamf_parameters $chamf_dist_angle
}
if { [string compare $group "dist_dist"] == 0 } {
   set chamf_type ""
   set chamf_parameters $chamf_dist_dist
}
if { [string compare $group "equal_dist"] == 0 } {
   set chamf_type ""
   set chamf_parameters $chamf_equal_dist
}

compute_chamf result Ed sh

catch { puts [checkshape result] }
checkview -display result -2d -path ${imagedir}/${test_image}.png
puts "TEST COMPLETED"