Linear_extrude(height=(outside_diameter1-inside_diameter1)/1.9) Rotate()Ĭylinder(h=length1,r1=outside_diameter1/2,r2=outside_diameter1/2,center=false,$fn=outside_shape1) Ĭylinder(h=length2,r1=outside_diameter2/2,r2=outside_diameter2/2,center=false,$fn=outside_shape2) Ĭylinder(h=length3,r1=outside_diameter3/2,r2=outside_diameter3/2,center=false,$fn=outside_shape3) Ĭylinder(h=length4,r1=outside_diameter4/2,r2=outside_diameter4/2,center=false,$fn=outside_shape4) Ĭylinder(h=length5,r1=outside_diameter5/2,r2=outside_diameter5/2,center=false,$fn=outside_shape5) Ĭylinder(h=length6,r1=outside_diameter6/2,r2=outside_diameter6/2,center=false,$fn=outside_shape6) Ĭylinder(h=length1+1,r1=inside_diameter1/2,r2=inside_diameter1/2,center=false,$fn=inside_shape1) Ĭylinder(h=length2+1,r1=inside_diameter2/2,r2=inside_diameter2/2,center=false,$fn=inside_shape2) Ĭylinder(h=length3+1,r1=inside_diameter3/2,r2=inside_diameter3/2,center=false,$fn=inside_shape3) Ĭylinder(h=length4+1,r1=inside_diameter4/2,r2=inside_diameter4/2,center=false,$fn=inside_shape4) Ĭylinder(h=length5+1,r1=inside_diameter5/2,r2=inside_diameter5/2,center=false,$fn=inside_shape5) Ĭylinder(h=length6+1,r1=inside_diameter6/2,r2=inside_diameter6/2,center=false,$fn=inside_shape6) (Update, the text wasn't moving with the branches when rotate all was used, I fixed it by adding rotate all for x,y and z in the text sections and now the text moves properly) Just copy and paste the revised code into the editor pane in OpenScad: I added a text input to each of the existing branches,then set up a "text" module: Eg.I wanted to be able to mark the size of the different branches,so I added the capability to the pipe fitting module: The $fn argument makes the circle smoother - the circle is represented as a regular polygon and $fn specifies the number of its edges. You can clone it and play with it yourself. The complete source code is available in a git repo linked at the end of the article. There are example snippets of code throughout the article. Real world example (colorFabb COPPERFILL Ø 2,85 m / 4m): We can model it in the dimensions of a real reel and than scale it to the final model size. On top of it we would like to put a logo and some abbreviation of the material name. We would like to get a shape that roughly looks like a filament reel but is not too complex. F6 - render the model (do this before saving to STL)Ĭomments are C-like, ie.Basically you write your code in one pane and see the model in the other. Please refer to the OpenSCAD User Manual and the example models for the basics of OpenSCAD. Then I realized I've already done something similar a few years ago in open-source RenderMan implementation Pixie for the university projected on the Shading Languages course. when compared to Blender with its overly complex UI with hard learning curve.Īfter I finished this project it felt vary natual and familiar. This is a different to the triangle mesh representation where only the border, not the solid itself is described.įor programmers the whole concept is much more intuitive and natural, eg. The model is described by a custom programming language. we the model from primitive parts (cube, 2D polygon, linear extrusion), by applying transformations (traslate, scale, rotate) and set operations (union, intersection, difference). It allows to make 3D models using the Constructive Solid Geometry (CSG) and procedural modeling paradigms. Since I like programming more than GUI modeling tools and mouse clicking, I decided to try OpenSCAD. Imagine a big poster to present a collection of filament materials and for each there's a nice small tangible artifact made of that material. This little weekend project was done for Svět 3D Tisku (3D Print World), a local 3D print company ran by my parents, for 3D Expo Prague 2016. Our today's goal is to prepare around 20 3D-printed things representing filament reels, each with a inset logo and a short name of the material.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |