12/17/2023 0 Comments Openscad youtube![]() 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. You can also raise the "faces" number to get smoother spheres and change the "step" to a smaller angle to make the spheres go closer together. To make the braid longer, change the value 360 to a larger number in the "for" loop. The slope at peaks and troughs was also forced to zero. The wave(th) polynomial was fitted to phase angles where the Z height needed to peak or trough. ![]() This braid was made using the code below. There are a lot more that needs to be done to make it as (or even more) usable as the native OpenSCAD GUI, but I plan to get there in the coming month. If you guys want to take a look, here’s what that looks like: I’ve started experimenting with the idea, and while there is still a lot to do and a lot to figure out and optimize in terms of workflow, I have built something that has reached usability level. ![]() Even if you're an absolute beginner to computer code, these videos can help you get started with OpenSCAD quickly and easily. He goes over the basics slowly and clearly, and offers great tips for organizing your code. So, I’ve had an itch I wanted to scratch for a very long time: the power and quickness of OpenSCAD for modeling, married with the power and depth of Blender for 3D navigation (and many other things). Patrick Conner has an excellent series of OpenSCAD tutorial videos on YouTube. However, I am also a very long time Blender user, which IMO is unparalleled in the FOSS world for many things, but specifically for 3D navigation and interacting with 3D geometry in general. Long time user of OpenSCAD here, which - as someone with a coder background - is my favorite tool for creating quick CAD-like objects. ![]() I've only looked at the one shape but I notice with the cylinder that without labels the second vale is assumed to be "r1" rather than "r", which means there is no specified value for "r2" so it is given a default value of 1. The label might be redundant, but I don't see any need for it to break the code. Within the parenthesis of a function, If you put a labeled variable in front of an unlabeled variable, (even if it is in sequence) this seems to foul up the operation. Hay guys, I only just noticed these quirks to do with inputting arguments, and was curious to know what other people made of them, would you consider them bugs?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |