1 polyline p 0 0 0 10 0 0 10 0 10 5 0 10 5 0 5 0 0 5 0 0 0
7 # make the shapes connected
8 makeconnected c b3 b1 b2
11 checknbshapes c -vertex 18 -edge 31 -wire 17 -face 17 -shell 3 -solid 3 -t
12 checkprops c -s 900 -v 1000
17 checknbshapes m3 -face 7 -t
19 # make the shape periodic
20 cmakeperiodic cp -x 10 -y 10 -z 10
21 checknbshapes cp -vertex 26 -edge 42 -wire 20 -face 20 -shell 3 -solid 3 -t
26 checknbshapes m1 -face 10 -t
29 checknbshapes m2 -ref [nbshapes b2] -t
32 checknbshapes m3 -face 8 -t
35 # check material associations
38 # the face b3_3 is REVERSED
39 # materials on negative side should be only b3
40 # materials on positive side should be b1 and b2
47 foreach f [explode mf f] {
48 if {![regexp "No materials on this side" [cmaterialson p + $f]]} {
51 if {![regexp "No materials on this side" [cmaterialson n - $f]]} {
56 # check that neg contains b3 only
57 checkprops neg -equal b3 -skip
59 # check that pos contains both
61 checkprops pos -equal comp -skip