Top
Best
New

Posted by c0nsumer 3 days ago

OpenSCAD is kinda neat(nuxx.net)
322 points | 248 commentspage 2
iamwil 2 days ago|
Ah OpenSCAD. I wrote a tutorial a long time ago about the 10 things you need to know to get started.

https://cubehero.com/2013/11/19/know-only-10-things-to-be-da...

mcv 3 days ago||
There's a tutorial? Maybe I should have started there.

I recently started messing around with OpenSCAD too. I found these boxes that are great for storing the tiles for various 18xx railroad boardgames: https://www.printables.com/model/287297-parametric-18xx-tile...

Cool thing is that you can easily print them in whichever size you like, and the sizes in the supplied files are rather large, so I tried some smaller sizes, and discovered some details weren't actually centered properly, so I dove into the code, tweaking some bits here and there until I got it centered properly.

Then my dad asked me to print boxes for a game that had slightly larger tiles, so I needed to tweak the sizes, the thickness, and made everything just a bit more configurable.

I've got another idea I haven't tried yet: print the shape of the track on the tile on the spot its meant for. That's a whole new feature and not merely tweaking an existing one, so maybe it's time to finally learn how this format actually works.

Although I did see in the code that you create shapes through intersections and substractions with other shapes. And that's where I got stuck. Maybe it's time to pick it up again. It's a fun way of building shapes.

WillAdams 2 days ago|
For my part, when I have to rough out a design in OpenSCAD, I'll often use:

https://www.blockscad3d.com/editor/

mcv 2 days ago||
That is really awesome. Thanks!

And not just for me; now I might also be able to get my kids to design stuff to print.

WillAdams 1 day ago||
It's one of my favourite tools.

If/when your kids outgrow it, there's also:

https://github.com/derkork/openscad-graph-editor

overtone1000 3 days ago||
I completely agree! https://overdesigned.org/shhh-dont-move-it-cant-see-us-if-we...
dvh 3 days ago||
I rage-quited every other CAD program. Then I found OpenSCAD. Now I'm looking forward to work in it every time I need to do some 3d modeling (usually new part model for kicad or some other project).
moebrowne 2 days ago|
I had the same experience. I think OpenSCAD is ideal for people with a 'developer' brain.

As it happens I wrote about this almost exactly a year ago

https://mountainofcode.co.uk/3d-modeling-for-developers

Joel_Mckay 2 days ago||
OpenSCAD is great if you follow a subtractive workflow. Define simple stock geometry, and subtract away each feature with slightly wider primitives to avoid zero thickness intersections. This ensures you will not get weird bugs later, and a fairly accurate part for plastic printers.

As many correctly pointed out, STL & DXF are not considered professional file-formats anymore by some people. Some fabricators will not respond to quote requests, as without a Step file they are literately self-confessed useless clowns without Onshape/Fusion true solids handling the ugly math.

It is partially a unofficial standards issue, but customers without Step files may have to look around for fabricators. YMMV =3

cpeth 3 days ago||
Check out https://zoo.dev/

I went from OpenSCAD -> cadquery/build123d -> Zoo/KCL

It still is early days, and it needs some more helper functions but it's really nice having two-way capabilities (not just code -> model, but also the reverse).

Of course having Text-to-model as a first class citizen is also nice.

dbuxton 3 days ago||
I have played with this but been underwhelmed. However I do think probably on the right track.

I know the ecosystem not-at-all (sum total knowledge of the CAD ecosystem is that my kids got a Bambu printer for Hanukkah) but it feels to me that current LLMs should be able to generate specs for something like https://partcad.readthedocs.io/en/latest/, which can then be sliced etc.

Curious to know what others think? I come at this from the position of zero interest in developing the fine design skills needed to master but wanting to be able to build and tweak basic functional designs.

bob778 3 days ago||
I want to like Zoo but the rendering engine is so buggy currently that it’s not really usable for more than simple shapes. The text-to-CAD feature they highlight is slow and error-prone, so much so that they explicitly use a “prebuilt” version in the tutorial, and each time I tried it, it gave tool errors or took so long I just did it manually.
jdranczewski 2 days ago||
An interesting use case of OpenSCAD is open source hardware with many contributors - the reasoning being that we only have mature version control tooling for text-based files (say git), and so your CAD design should be text-based. I was introduced to this idea by https://openflexure.org/projects/microscope/ - they managed to build a fairly complex 3D printed microscope project on this principle.

I'm aware of Onshape having a git-like workflow as well, wonder how the two compare! A fully cloud-based suite would probably not work well for an open source project.

WillAdams 2 days ago||
Yeah, I wish that this had been popularized in the Maker movement, but Autodesk nuked that field when they made Fusion 360 "free" (which was probably their intent).
JonathanRaines 3 days ago||
Also check out CADQuery and or build123d (python equivalents)
alhirzel 3 days ago|
+1 for CADQuery - it lets you easily specify surfaces as the basis for manipulation, and results in much less fragile designs than OpenSCAD.
thdrtol 2 days ago||
Tip (a lot of people don't know this): you can set the resolution by setting the $fn variable. This can be useful when you want to export smooth objects.

  $fn = $preview ? 32 : 64;
voxleone 2 days ago|
Just a minor aside: When exporting geometry for FEM, you generally should not make $fn very high (values around 32–64 are usually fine). High $fn improves visual smoothness, but it often hurts FEM meshing and solver performance without improving accuracy, since FEM accuracy is governed by the solver’s mesh rather than the CAD tessellation.
Ccecil 3 days ago|
If you are a programmer OpenSCAD is likely for you. It certainly has benefits in things that are repeating patterns (gears and such)...and if your mind is good at visualizing things in "code" things will likely go a lot faster.

I personally do better with CAD software such as fusion or freecad since my mind doesn't work in the code realm since I have more of a hardware mindset. Translating the picture in my head to code is more difficult than drawing it using the standard CAD set of tools.

My opinion on OpenSCAD is that it is a very useful piece of software which many have used to make some very interesting things. If you have a background in code I recommend giving it a go. I largely view it as "the coder's CAD".

shmeeed 3 days ago||
I was just about to say the same: OpenSCAD is CAD for programmers. It's very different from what's generally considered "CAD".

That's not necessarily a bad thing; there's a clientele for it, especially here on HN. But as a mechanical engineer who's used quite a few industry standard CAD systems, I'm sorry to say I wouldn't touch it with a ten foot pole.

Funnily, just a few days ago I tried FreeCAD, and found it to be better than I had expected.

Ccecil 2 days ago|||
I switched from Fusion to Freecad just before the 1.0 update.

Freecad 1.0 is a gamechanger IMHO. It so far has suited all my needs as well as being significantly easier to use than the pre 1.0 versions.

ThrowawayTestr 3 days ago|||
FreeCAD feels like blender before the UI revamp. I can tell it's powerful but the UI is opaque to me.
cluckindan 2 days ago||
For functional-oriented programmers.

There is no explicit iteration, so if you want to do flexible spacing for any reason, like distribute a feature evenly along a dynamic length, you need to use recursion.

More comments...