File: bug119

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 (46 lines) | stat: -rwxr-xr-x 1,186 bytes parent folder | download | duplicates (6)
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
puts "================"
puts "OCC119"
puts "================"
puts ""

box a 100 100 100
explode a e

set mistake 0
if [catch {blend result_1 a 50 a_10 50 a_5 50 a_12 50 a_3 } catch_result] {
    set mistake 1
} else {
    set mistake 0
}

if { ${mistake} == 1} {
    puts " 1) OCC119 OK: BLEND was NOT created and suitable except was given."
} else {
    puts "1) OCC119 OK: function BLEND works without suitable except"
    checkshape result_1
    explode result_1 e

    if { [catch {blend result_2 result_1 50 result_1_20 50 result_1_22 50 result_1_10} catch_result] } {
	puts "2) Faulty  OCC119: BLEND was NOT created"
    } else {
	puts "2) BLEND OCC199 OK: BLEND was created"
	checkshape result_2
    }

    set che [checkshape result_2 r]
    if { [regexp {OK} $che] != 1 } {
	puts "Faulty : mistakes are found in shape by checkshape command after BLEND command"
	puts " Body of the scripts was not executed !"
    } else {
	puts "Checking by checkshape - OK"

	vinit
	vdisplay result_2
	vsetdispmode result_2 1
	vfit

	explode result_2 e
	blend result result_2 50 result_2_20 50 result_2_22 50 result_2_10
	checkview -screenshot -3d -path ${imagedir}/${test_image}.png
    }
}