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