3bea4c16 |
1 | puts "============" |
2 | puts "OCC22864" |
3 | puts "============" |
4 | puts "" |
5 | ############################################################################################## |
6 | # The algorithm BiTgte_Blend obtains instable results |
7 | ############################################################################################## |
8 | |
9 | set BugNumber OCC22864 |
10 | |
11 | restore [locate_data_file bug22864_face1.brep] f1 |
12 | restore [locate_data_file bug22864_face2.brep] f2 |
13 | |
14 | shape aShape C |
15 | add f1 aShape |
16 | add f2 aShape |
17 | |
3bea4c16 |
18 | set status 0 |
3bea4c16 |
19 | set Numbers 11 |
a4eba920 |
20 | |
3bea4c16 |
21 | for {set i 0} {$i < ${Numbers}} {incr i} { |
a4eba920 |
22 | puts "i=$i" |
23 | rollingball result aShape 15 @ f1 f2 |
24 | |
25 | checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 8 |
26 | |
27 | set aFile $imagedir/${test_image}.brep |
28 | puts "aFile=${aFile}" |
29 | file delete ${aFile} |
30 | if { [file exists ${aFile}] } { |
31 | puts "There is old ${aFile} file; Error" |
32 | set status 1 |
33 | } |
34 | |
35 | save result ${aFile} |
36 | catch {exec chmod 777 ${aFile}} |
37 | if { ![file exists ${aFile}] } { |
38 | puts "There is not ${aFile} file; save command: Error" |
39 | set status 1 |
40 | } |
3bea4c16 |
41 | |
a4eba920 |
42 | set fp [open ${aFile} "r"] |
43 | set Log [read -nonewline ${fp}] |
44 | close ${fp} |
3bea4c16 |
45 | # |
a4eba920 |
46 | if {$i == 0} { |
6d368502 |
47 | set Standard_Log ${Log} |
a4eba920 |
48 | } else { |
6d368502 |
49 | set info_result [string compare ${Log} ${Standard_Log}] |
a4eba920 |
50 | if {${info_result} == 0} { |
6d368502 |
51 | # Log == Standard_Log |
52 | puts "Log == Standard_Log" |
3bea4c16 |
53 | } else { |
6d368502 |
54 | # Log != Standard_Log |
a4eba920 |
55 | set status 1 |
6d368502 |
56 | puts "Log != Standard_Log" |
3bea4c16 |
57 | } |
a4eba920 |
58 | } |
3bea4c16 |
59 | } |
60 | |
61 | # Resume |
62 | puts "" |
63 | if {${status} == 0} { |
64 | puts "OK ${BugNumber}" |
65 | } else { |
66 | puts "Faulty ${BugNumber}" |
67 | } |
68 | |
58cf74e0 |
69 | checkprops result -s 8464.91 |
70 | checkshape result |
5747059b |
71 | checkview -display result -2d -path ${imagedir}/${test_image}.png |