
- #OPENSCAD TUTORIALS CODE#
- #OPENSCAD TUTORIALS PC#
Let’s add a cylinder to our script: cube() cylinder()
#OPENSCAD TUTORIALS PC#
The clamping pieces must be columns, because they need to be slightly angled to support the pc steadily.
Now we have a simple parallelepiped placed with a vertex on the origin. Openscad has its own “unit”, that corresponds to 1mm when exported as STL. You’ll notice that I didn’t specify a unit of measurement, yet I’m passing values as if they were mm. The dimensions are passed as a 3-value vector (expressed with the square brackets).
The base will be 1cm thick and 2cm large. My laptop is 2cm thick I’ll make the base 5cm long, leaving some room for the columns. You can build any parallelepiped with the cube function kind of non-intuitive if you ask me, but I guess it’s simpler that way. Pressing F5 will show a yellow 1x1x1 cube in the center of the axes. The first thing I learned to create in Openscad is a cube. I’ll guide you through the steps, covering some basic solutions for the design that are otherwise hard to find (at least, they were for me). Chances are the examples you can already find don’t fit your device, like in my case so, I decided to copy it with my specific sizes. The design I have in mind can already be found in several iterations on Thingiverse ( this is mine): it’s a C-shape that loosely clamps your laptop on both sides, leaning over it’s bottom and slightly bending it upwards.
Once rendered, you can export your model as an STL file by clicking File > Export > Export as STL. By pressing F6 you render the model it’s the final step before exporting it. By pressing F5 you activate a preview of your model. #OPENSCAD TUTORIALS CODE#
The text editor is the part where you code your model. There are only 4 things to know to begin working: Once opened we find a splitted view: on the left, a text editor on the right, a Cartesian 3D space. It’s open source and available for all major OSes. One downside is the lack of good tutorials and documentation to get started, so I’m going to explain step-by-step a simple support piece I designed to let my laptop fans breathe in the hot summer days.įirst thing to do - of course - is installing Openscad. On the other side of the coin it’s obviously limited and contrived in regard of more artistic trials. If your goal is to design a small and precise/regular model it’s actually faster and more reliable than a traditional CAD. I was super excited to finally make the most of an otherwise useless course on Wolfram Mathematica I had to take - they have a very similar approach. The gimmick with Openscad is that you create the figure with a declarative approach through a C-like scripting language. This is meant to be a suggestion for people that, like me, are more comfortable with a text editor than with modeling tools. Keep in mind my introduction though: computer scientist/software developer/maker. I was however very reluctant to go down that path, mostly because a colleague of mine had to take an exam involving Blender and didn’t describe it as the most pleasant experience.Īfter looking for the right tool for way too much time I stumbled upon an excellent option: Openscad. Many ranking lists and forums suggest the likes of Blender or the Autodesk family. There is only so much that can be done to simplify it, and you need to put a lot of effort if you actually want to design something useful and reliable. If you want to step up your game though, the direction isn’t so clear. For (very) occasional usage and from a beginner’s perspective, this is a great tool: very intuitive yet surprisingly powerful, it only takes a couple of video tutorials to get started at a reasonable speed. My first experience was with Google SketchUp. Of course when I say myself I mean Google, and the question was more like “3D printing modeling software”. I posed myself the question: “Given a machine that can materialize (almost) any shape from thin air, what tool should I use to express said shape out of my mind?” Long story short, I had some ideas and requests for designs of practical usage, but I didn’t know where to start. There is a lot of cool stuff to print out there, but the purpose of a 3D printer should be to empower your creativity, not to be some mystery toy box. This article however is not about that part (there is an excellent compendium of all the quirks your settings can cause, and Thingiverse is a pleasure to navigate) it’s about what came next, when the excitement settled down and left room for some actual creative work. The first couple of months was spent fiddling with the parameters, understanding the problems you can face and compiling a long list of stuff to print from Thingiverse. A small model, built from a cheap kit (Anet A6, a little short of 200 euros).īeing a computer scientist/software developer/maker I was really excited for the new toy. Less than a year ago I got my hands on a 3D printer.