@@ -44,11 +44,10 @@ def get_data():
44
44
def bosl2_diff1 ():
45
45
#let's try this:
46
46
#diff("neg", "pos", keep="axle")
47
- # spheroid(d=20) {
48
- # attach(TOP) down(1.5) cyl(l=11.5, d1=10, d2=5, anchor=BOTTOM);
49
- # attach(RIGHT, BOTTOM) down(1.5) cyl(l=11.5, d1=10, d2=5);
50
- # attach(FRONT, BOTTOM, overlap=1.5) cyl(l=11.5, d1=10, d2=5);
51
- # }
47
+ # sphere(d=100, $tags="pos") {
48
+ # attach(CENTER) xcyl(d=40, l=120, $tags="axle");
49
+ # attach(CENTER) cube([40,120,100], anchor=CENTER, $tags="neg");
50
+ # }
52
51
return \
53
52
diff ("neg" , "pos" , keep = "axle" ) (
54
53
sphere (d = 100 , _tags = "pos" ) (
@@ -60,11 +59,10 @@ def bosl2_diff1():
60
59
def bosl2_diff ():
61
60
#let's try this again in a pythonic manner:
62
61
#diff("neg", "pos", keep="axle")
63
- # spheroid(d=20) {
64
- # attach(TOP) down(1.5) cyl(l=11.5, d1=10, d2=5, anchor=BOTTOM);
65
- # attach(RIGHT, BOTTOM) down(1.5) cyl(l=11.5, d1=10, d2=5);
66
- # attach(FRONT, BOTTOM, overlap=1.5) cyl(l=11.5, d1=10, d2=5);
67
- # }
62
+ # sphere(d=100, $tags="pos") {
63
+ # attach(CENTER) xcyl(d=40, l=120, $tags="axle");
64
+ # attach(CENTER) cube([40,120,100], anchor=CENTER, $tags="neg");
65
+ # }
68
66
69
67
axle = xcyl (d = 39 , l = 120 , _tags = "axle" )
70
68
neg = cube ([40 , 120 , 100 ], anchor = CENTER , _tags = "neg" )
0 commit comments