Skip to content

Commit 57a31c8

Browse files
committed
fixed comment in bosl2 example
1 parent cffb03f commit 57a31c8

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

solid/examples/07-libs-bosl2.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ def get_data():
4444
def bosl2_diff1():
4545
#let's try this:
4646
#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+
# }
5251
return \
5352
diff("neg", "pos", keep="axle") (
5453
sphere(d=100, _tags="pos") (
@@ -60,11 +59,10 @@ def bosl2_diff1():
6059
def bosl2_diff():
6160
#let's try this again in a pythonic manner:
6261
#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+
# }
6866

6967
axle = xcyl(d=39, l=120, _tags="axle")
7068
neg = cube([40, 120, 100], anchor=CENTER, _tags="neg")

0 commit comments

Comments
 (0)