posts tagged with the keyword ‘openclipart’

2012.11.27

Tennis Man

Here’s a thing I’m calling (for lack of a better name) “Snowflakey”. The idea came from the Kimotion Arts store on Shapeways.

Kimotion Arts

Kimotion Arts has these neat 3D printed ornaments with an object arranged in a circle to make a snowflake-like thing. I dig it, so I decided to dig into it.

Bad Man

The first thing I did was fire up Inkscape and draw a really simple figure. It’s terrible, really, but I did it in less time than it took Inkscape to launch of Mac OS X. I created an SVG file, and then exported it as a DXF file, making sure I converted all the line segments into straight lines first. (Of course there were no curves in this drawing, but if there were, I’d convert them!)

Bad Man Flake

Once I had my DXF file, it was easy to pull that into OpenSCAD, and place six of them in a circle with the following code.


objheight = 4;
objcenterspacing = 20;
objrotate = -70;

for (i = [0:5]) {
  rotate(i*360/6, [0,0,1])
    translate([0, objcenterspacing, 0])
      rotate([0, 0, objrotate]) 
        linear_extrude(height = objheight, center = true) 
          import( "figure.dxf" );
}

The code is not the greatest… in fact there is probably much room for improvement, but it’s the first thing I got working, so I ran with it. My idea for the 3 variables at the top were so you could easily tweak them for different art. Sadly, as you change objcenterspacing and objrotate, they affect each other, so it’s a lot of back and forth between those two values. I also could not find a way to assign a filename to a variable, so your DXF will need to be named “figure.dxf” or you’ll need to edit the import line.

Tennis Man

Since my drawing was so terrible I wanted to try something else, so what better than Land recreation symbols 27, better known as “Tennis Man” by most people.

Tennis Man Flake

A few quick edits and I had this nice Tennis Man Snowflake for that special ball smasher on your list… (Notice the canvas size of 25mm wide by 35mm high. You can do what you want, but the OpenSCAD code will be expecting something close to that. Otherwise you’ll just have to tweak the numbers even more.)

Blobby Man Flake

I decided to try once again to draw something. This one too a little longer than a minute, but turned out just as terrible as the first one I did. Still, maybe you like “Blobby Man” as a snowflake.

Ant Flake

How about ants? This one is interesting. Maybe spiders would have been a better choice. (And yes, I know I could probably do the entire “6 items rotated” think right in Inkscape, but that wasn’t the goal here.)

Horse Flake

What about the old nag? No, I’m not taking about your mother-in-law (kidding!) but this fine old horse from OpenClipArt.org, where I get many of the SVG files I use. Export this as an STL file and you’re ready to print it on your RepRap!

If you’ve got an improvement to this OpenSCAD code, by all means, let me know. I’m still very much in the learning phase with OpenSCAD, so I do these things to learn, and because of that I’m open to any suggestions.

|

buy the button:

Buy The Button

recently at:


top recent artists: