![]() ![]() OpenSCAD mailing Normally, when I have this problem, I export the file as DXF/SVG, open the translate () square () Ĭolor ("blue") offset(r=-interior) offset (r=interior) shape() Ĭolor ("yellow") translate () shape() Not perfect - uncomment the line below to break it But this technique works well enough for certain shapes. for example $fn=40, then you would start getting artifacts on some of ![]() This example) without the outline of the external shape varying. Variable with $fn high (like 200) interior can be between 10 and 20 (on In this case there is an interplay between the $fn and the "interior" Here is a simple proof of concept using offset and no external libraries. To break paths apart, then just grab the outside shape. Normally, when I have this problem, I export the file as DXF/SVG, open the file in Inkscape, Ctrl+Shift+K ![]() Polygon(obj) // obj is the desired outline Simple example below shows some boolean operations to make a 2d object.įull 2d object on the left, and then just the outline object on the right. The outline you desire plus a list of (entirely internal and disjoint) holes You were to construct your object with that code the final output would be I haven't really experimented with that code much, but I believe if Some functions for doing boolean operations on 2d objects expressed as point I don't know if this would be practical for your situation, but BOSL2 has So, any idea on how one could do an outline() module? Likewise, bouncing an offset out and back won't work, as it'll affect If I could do the holes last, it would (partly, but not guaranteed) help,īut I can't as I have other later stages which requires them to be there. If the objects were simple, I could do it by union() with some "cover Would work, but I cannot rely on them to be convex (in fact, they most If I knew the objects were convex, it wouldn't be a problem, then hull() Holes contained fully within, to create masks for other stages in the What I want is to get just the outer contour of the object, without the (or may not) also affect the shape of the outline. The holes are made in a pretty early part of the process, and the holes may These objects are pretty complex, done in several stages, and I have 2D objects, which might be concave, and which has Look forward to your updates and youtube posts.I have a problem. Of course, it does also come with compute hardware requirements so i understand why it may not work for some. for example bending of materials which i've found useful for a metal project of mine and may have been useful in your case too. switching to direct design is useful for quick tweaks (though the geek in me eventually wants to get around to turning those back into parametric design elements!) and of course comes with a lot of other neat functionality. i've found that adjusting the dimensions in the underlying sketches that support the models serves the functionality that i sought in OpenSCAD. so stuck it out with Fusion 360 and have to say that there's value in once you get over the initial learning curve. Wanting a parametric design tool, i also tried to get into OpenSCAD but ultimately decided that i didn't have time or brain-space for yet-another programming language. Now I'm thinking of how much easier many of my Illustrator drawings would be if I just programmed them in OpenSCAD. My DDG searches weren't quite coming up with anything besides a few old GitHub issues. I decided to put up this blog post in the hopes it might help someone else doing the same thing. Now it shows up as a 2D plane drawing:Īnd now the 'Export as PDF.' option (as well as the other 2D options like SVG) works great, allowing me to save a to-scale PDF suitable for reference or printing: To get something exportable, I just added projection() at the top of my model to turn the top-down view into a 2D projection, then Rendered the object. If I tried exporting a PDF or SVG of the model (File > Export > Export as PDF.), it understandably didn't know what to do: Some online utilities took an STL file and turned it into a PNG, but they weren't great and most wouldn't output a PNG with the exact dimensions as the model (they printed too big or too small). The idea was to print a to-scale line drawing of the part on my laser printer, cut it out, fold it, and check to make sure everything lined up correctly. Before 3D printing the final design, or cutting metal, I wanted to 'dry fit' my design to make sure my measurements were correct. One thing I wanted to do recently was model a sheet-metal object that would be cut from a flat piece of sheet metal, then folded into its final form using a brake. I've been getting into OpenSCAD lately-I'd rather wrestle with a text-based 3D modeling application for more dimensional models than fight with lockups of Fusion 360! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |