0031131: [REGRESSION] Mesh - location of Wire affects Poly_Polygon3D
[occt.git] / tests / bugs / mesh / bug31131
1 puts "========="
2 puts "0031131: Mesh - location of Wire affects Poly_Polygon3D"
3 puts "========="
4 puts ""
5
6 vertex v1  0  0 0
7 vertex v2 10  0 0
8 vertex v3 10 10 0
9 edge e12 v1 v2
10 edge e23 v2 v3
11 wire w e12 e23
12 tcopy w w0
13 copy w w11
14 copy w w12
15 copy w w13
16 ttranslate w12 0 0 10
17 ttranslate w13 0 0 20
18 compound w11 w12 w13 c
19 incmesh c 1
20 vclear
21 vinit View1
22 vdefaults -autoTriang 0
23 explode w11 v
24 #vdisplay w11 w0 w11_1 w11_2 w11_3
25 vdisplay w11 w11_1 w11_2 w11_3
26 vfit
27
28 bounding w11 -save xmin ymin zmin xmax ymax zmax
29 checkpoint Min [list [dval xmin] [dval ymin] [dval zmin]] { -1 -1 -1 } 0.0001
30 checkpoint Max [list [dval xmax] [dval ymax] [dval zmax]] { 11 11  1 } 0.0001
31
32 checkview -screenshot -3d -path ${imagedir}/${test_image}.png