0031496: Modeling Algorithms - BRepAlgo::ConcatenateWireC0() crashes
[occt.git] / tests / bugs / modalg_7 / bug31460
CommitLineData
517ba7aa 1puts "========"
2puts "0031460: Modeling Algorithms - Regression: Revolution not done."
3puts "========"
4puts ""
5
6circle cir 3 2.9999999999989 0 0 0 -1 -1 0 0 3
7trim cir cir 4.71238898038469 6.28318530717959
8mkedge e cir
9
10## sector
11revol r10 e 0 0 0 1 0 0 10 1
12
13if { [isdraw r10] == 1 } {
14 if { [regexp "valid" [checkshape r10]] && [regexp "OK" [bopcheck r10 4]]} {
15 puts "OK: valid shape is created"
16 } else {
17 puts "Error: algorithm created wrong shape"
18 }
19} else {
20 puts "Error: algorithm did not create shape"
21}
22
23## full revol
24revol r360 e 0 0 0 1 0 0 360 1
25
26if { [isdraw r360] == 1 } {
27 if { [regexp "valid" [checkshape r360]] && [regexp "OK" [bopcheck r360 4]]} {
28 puts "OK: valid shape is created"
29 } else {
30 puts "Error: algorithm created wrong shape"
31 }
32} else {
33 puts "Error: algorithm did not create shape"
34}