File tree 1 file changed +27
-9
lines changed
1 file changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,38 @@ graphics pause
5
5
set journal off
6
6
set default autosize off
7
7
#CELL 3
8
- sphere radius 30 .0
8
+ sphere radius 20 .0
9
9
#{ id1 = Id("body") }
10
- body { id1 } name "Cell_3"
11
- group "mat:void" add body { id1 }
10
+ brick x 500 y 500 z 500
11
+ #{ id2 = Id("body") }
12
+ subtract body { id1 } from body { id2 }
13
+ sphere radius 30.0
14
+ #{ id3 = Id("body") }
15
+ #{ id4 = Id("body") }
16
+ intersect body { id2 } { id3 }
17
+ #{ id5 = Id("body") }
18
+ #{id6 = ( id4 == id5 ) ? id3 : id5}
19
+ body { id6 } name "Cell_3"
20
+ group "mat:void" add body { id6 }
12
21
#CELL 2
22
+ sphere radius 10.0
23
+ #{ id7 = Id("body") }
24
+ brick x 500 y 500 z 500
25
+ #{ id8 = Id("body") }
26
+ subtract body { id7 } from body { id8 }
13
27
sphere radius 20.0
14
- #{ id2 = Id("body") }
15
- body { id2 } name "Cell_2"
16
- group "mat:void" add body { id2 }
28
+ #{ id9 = Id("body") }
29
+ #{ id10 = Id("body") }
30
+ intersect body { id8 } { id9 }
31
+ #{ id11 = Id("body") }
32
+ #{id12 = ( id10 == id11 ) ? id9 : id11}
33
+ body { id12 } name "Cell_2"
34
+ group "mat:void" add body { id12 }
17
35
#CELL 1
18
36
sphere radius 10.0
19
- #{ id3 = Id("body") }
20
- body { id3 } name "Cell_1"
21
- group "mat:void" add body { id3 }
37
+ #{ id13 = Id("body") }
38
+ body { id13 } name "Cell_1"
39
+ group "mat:void" add body { id13 }
22
40
graphics flush
23
41
set default autosize on
24
42
zoom reset
You can’t perform that action at this time.
0 commit comments