0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / modalg_5 / bug25184
CommitLineData
b858a698 1puts "================"
2puts "OCC25184"
3puts "================"
4puts ""
5#######################################################################
6# Non-deterministic order of wires in the result of General Fuse
7#######################################################################
8
9restore [locate_data_file bug25184_Input_0.brep] b0
10restore [locate_data_file bug25184_Input_1.brep] b1
11restore [locate_data_file bug25184_Input_2.brep] b2
12restore [locate_data_file bug25184_Input_3.brep] b3
13restore [locate_data_file bug25184_Input_4.brep] b4
14
15bclearobjects
16bcleartools
17baddobjects b0 b1 b2 b3 b4
18
19bfillds
20
21bbuild r
22explode r w
23regexp {Mass +: +([-0-9.+eE]+)} [lprops r_43] full m0
24puts "Length(0) = $m0"
25
26set N 10
27for {set i 1} {$i < $N} {incr i} {
28 bbuild r
29 explode r w
30 regexp {Mass +: +([-0-9.+eE]+)} [lprops r_43] full mi
31 puts "Length($i) = $mi"
32 if { $mi != $m0 } {
33 set N 0
34 break
35 }
36}
37if { $N == 0 } {
38 puts "Error: Bad order of wires in the result of General Fuse"
39} else {
40 puts "OK: Good order of wires in the result of General Fuse"
41}