0030522: Modeling Algorithms - BRepBuilderAPI_MakeWire produces different wires depen...
[occt.git] / tests / bugs / modalg_7 / bug30522
1 puts "REQUIRED All: Wire not done with an error"
2
3 puts "========"
4 puts "0030522: Modeling Algorithms - BRepBuilderAPI_MakeWire produces different wires depending on the order of parameters"
5 puts "========"
6 puts ""
7
8 restore [locate_data_file bug30522_w_line12.brep] w1
9 restore [locate_data_file bug30522_w_line21.brep] w2
10
11 if {![regexp "Wire not done with an error" [wire r12 w1 w2]]} {
12   if {[lindex [nbshapes r12] 10] != 8} {
13     puts "Error: The wires have been unified incorrectly"
14   }
15 }
16
17 wire r21 w2 w1
18
19 wire r12u -unsorted w1 w2
20
21 wire r21u -unsorted w2 w1
22
23 foreach r {r21 r12u r21u} {
24   checkshape $r
25   checknbshapes $r -edge 8 -vertex 8
26 }
27
28 smallview +Y+Z
29 donly r21; fit
30 checkview -screenshot -2d -path ${imagedir}/${test_image}.png