Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!

# My First Experiment with OpenSCAD

## by giodamelio, published Dec 30, 2012

My First Experiment with OpenSCAD Dec 30, 2012

## Description

My First Experiment with OpenSCAD.

view all
Nice, that is way past my OpenSCAD. Besides, I have been using github.com/SolidCode/SolidPython
I couldn't resist the challenge... here's how to do it in one line:

for (i=[0:1]) for (j=[0:1]) rotate([0,90*i,90*j]) cylinder(r=5, h=40, center=true);

I'm sure it's not the most succinct, but it does create the same object. :)
Thanks for the tip. That will be super helpful.

view more

view all

## Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

#### Size

I couldn't resist the challenge... here's how to do it in one line:

for (i=[0:1]) for (j=[0:1]) rotate([0,90*i,90*j]) cylinder(r=5, h=40, center=true);

I'm sure it's not the most succinct, but it does create the same object. :)
giodamelio - in reply to MakerBlock
Nice, that is way past my OpenSCAD. Besides, I have been using github.com/SolidCode/SolidPython
FYI, you don't need the translate commands for this model if you put 'center = true' as an argument for the cylinders.
giodamelio - in reply to gringer
Thanks for the tip. That will be super helpful.
Top