TamperThinRadius = TamperThinDiameter * 0.5 TamperHandleRadius = TamperHandleDiameter * 0.5 Now, OpenSCAD functions like cylinder() and sphere() expect to be provided a radius, so we need to do some simple calculations: TamperThinDiameter = TamperHandleDiameter * 0.5 I started off by creating some variables to describe the tamper: // In milimiters: Creating a Tamper in OpenSCAD Defining the Tamper Attributes In this case, my tamper needs to have a diameter of 52mm. The slicers used by MakerWare interpret units from STL files as as millimeters, so for our purposes, we can rely on all numbers expressing millimeters. Note that OpenSCAD itself assigns no units to the numbers it uses. OpenSCAD supports variable assignment, mathematical calculation, and includes some functions for creating basic shapes. For editing within vim, the openscad.vim syntax script might be useful. The syntax used by OpenSCAD vaguely C-like and thus pretty simple to pick up. Besides being useful, it’s also something very simple to design: a flat, circular base with a handle for pushing down on. One of the things I’ve been meaning to design and 3D print has been a tamper for my espresso machine. ![]() ![]() This lets me use vim as my editor, something I’m quite comfortable with, while letting me see a live preview of my object as I save. Essentially, it provides you a programming language for defining objects. Unfortunately, I haven’t had enough time to truly familiarize myself with any CAD program, which tend to be considerably complex and have steep learning curves.įortunately, for those of us with a programmer’s mindset, there is OpenSCAD. Since getting our 3D printer, I’ve made a few attempts to learn how to properly use CAD software to design my own objects.
0 Comments
Leave a Reply. |