0024593: Missing surfaces from STL output
[occt.git] / tests / bugs / mesh / bug25142
1 puts "============"
2 puts "CR25142"
3 puts "============"
4 puts ""
5 ###################################################################################
6 # Visualization breaks triangulation on shared solids in composite solid model
7 ###################################################################################
8
9 # make two adjacent boxes share their common face
10 box b1 20 10 10
11 box b2 10 10 10 
12
13 bclear
14 baddobjects b1 b2
15 bfillds
16 bbuild r
17 explode r
18
19 # do all possible checks of validity
20 tolerance r
21 checkshape r
22 bopargcheck r #F
23 bopargcheck r_1 r_2 -F #F
24
25 # mesh one-by-one
26 incmesh r_1 0.1
27 tricheck r_1
28
29 # note it will be Ok if we use the same deflection here, and bad otherwise...
30 incmesh r_2 0.1
31 tricheck r_2
32
33 # now check again mesh on r_1
34 tricheck r_1
35
36 # now vdisplay solids separately causing their automatic re-mesh
37 tclean r
38 vinit View1
39 vsetdispmode 1
40 vdisplay r_1
41 vdisplay r_2
42 tricheck r_1
43
44 vfit
45 checkview -screenshot -3d -path ${imagedir}/${test_image}.png