0027015: Sewing returns invalid shape if some faces are nearly plane cones
[occt.git] / tests / bugs / modalg_2 / bug452_4
CommitLineData
a87752f3 1
2puts "========"
3puts "PRO7934"
4puts "OCC452"
5puts "(case 4)"
6puts "========"
7puts ""
8
9restore [locate_data_file CTO900_pro7934a.rle] a
10set che [checkshape a]
11if { [regexp {Faulty} $che ] == 1 } {
12 puts "Faulty OCC452 (shape 7): Source shape is invalid. It was detected by Checkshape command"
13} else {
14 puts "OCC452 OK (shape 7): Source shape is valid"
15}
16
17restore [locate_data_file CTO900_pro7934b.rle] b
18set che [checkshape b]
19if { [regexp {Faulty} $che ] == 1 } {
20 puts "Faulty OCC452 (shape 8): Source shape is invalid. It was detected by Checkshape command"
21} else {
22 puts "OCC452 OK (shape 8): Source shape is valid"
23}
24
25dchrono h2 reset
26dchrono h2 start
27
28bfuse result a b
29#checkshape -top res
30
31dchrono h2 stop
32set q2 [ dchrono h2 show ]
33regexp {CPU user time: ([-0-9.+eE]+) seconds} $q2 full z2
34puts "$z2"
35if { $z2 > 5 } {
36 puts "Elapsed time is more then 5 seconds - Faulty"
37} else {
38 puts "Elapsed time is less then 5 seconds - OK"
39}
58cf74e0 40checkprops result -s 201978
41checkshape result
5747059b 42checkview -display result -2d -path ${imagedir}/${test_image}.png
a87752f3 43
44
45