News for hackers. Stuff that matters.
Re:Curated Code CAD (2020) by londons_explore on Tuesday June 29, 2021 @01:38AM (#27672206)
When I last used OpenSCAD, I found it rather lacking.

Basic things like 'hollow this object out, leaving a 3mm shell' are nearly impossible.

Anything non-trivial takes minutes or hours to compile, making debugging really hard.

Are these newer tools better?

Re:Curated Code CAD (2020) by guitarbill on Tuesday June 29, 2021 @01:55AM (#27672299)
I can only speak from a 3d printing perspective, and I've only tried OpenSCAD and FreeCAD.

As rough as OpenSCAD is, I find myself coming back to it, because CAD-as-code is just so useful (including leaving comments). For bashing out quick, fairly simple models I still like it. The various OpenSCAD DSLs can help, but also not when they get superseded or get in your way. I think the review on the posts blog summarizes it well [0].

FreeCAD is apparently capable, but the UI defeats me. IMO, it tries to do too many things and doing none well.

The post doesn't really do a good job of comparing how mature the others are, so I'm not sure. But if CadQuery works as well as OpenSCAD or better, I may just be sold.

[0] https://learn.cadhub.xyz/blog/openscad-review/

Re:Curated Code CAD (2020) by trymas on Tuesday June 29, 2021 @06:08AM (#27673892)
AFAIK FreeCAD has Python API.

Though dunno about UX using it, probably not as streamlined as OpenSCAD, though maybe more powerful?

https://wiki.freecadweb.org/FreeCAD_API

Re:Curated Code CAD (2020) by irevdev on Tuesday June 29, 2021 @06:31AM (#27674002)
I kinda think the many of workbenches in FreeCAD might have been a mistake, it's confusing to know where to start.
Re:Curated Code CAD (2020) by guitarbill on Tuesday June 29, 2021 @12:00PM (#27677790)
I'm inclined to agree, although I'm not trying to bash FreeCAD. The benefit of hindsight is unfair, and FreeCAD set out to be a "full" CAD package, which are naturally complex. Widespread 3d printing came after FreeCAD's inception. No doubt the 3d printing "sphere" could benefit from an open Fusion 360 replacement though...
Re:Curated Code CAD (2020) by ur-whale on Tuesday June 29, 2021 @02:30AM (#27672543)
Yeah, I've tried to digest the Freecad UI / worflow many times, it's just horrible.
Re:Curated Code CAD (2020) by regularfry on Tuesday June 29, 2021 @06:40AM (#27674055)
There's definitely room for a UI remix that just embeds a couple of critical workbenches for specific workflows. I use it for designing things for 3d printing, and I spend all of my time in 3 workbenches, maybe 4 if I'm doing something unusual. There's a lot of UI/UX noise I don't need to care about.
Re:Curated Code CAD (2020) by dTal on Tuesday June 29, 2021 @05:37PM (#27682017)
There is, it's called SALOME. I've found it to be more intuitive than FreeCAD and they share a lot of code. Blows my mind that it's not more widely known. Bad marketing I guess - it's billed as a CFD preprocessor.

https://www.salome-platform.org/

Re:Curated Code CAD (2020) by ur-whale on Tuesday June 29, 2021 @02:32PM (#27679877)
I'm curious: have you found a way to export your models to a mesh file format (eg obj) with some amount of control tessellation?

Last I tried, I didn't manage to find the control. I assume it exists, but the UI was simply to painful to navigate.

Re:Curated Code CAD (2020) by dTal on Tuesday June 29, 2021 @05:40PM (#27682055)
I mention SALOME above - it's a bit of a sister project to FreeCAD, and it has extensive mesh generation facilities as part of its role as a CFD pre-processor. I've no doubt you could use this to assert fine control over a surface mesh export.
Re:Curated Code CAD (2020) by the__alchemist on Tuesday June 29, 2021 @03:21PM (#27680513)
> I've only tried OpenSCAD and FreeCAD.

This is the crux of why you've come to this conclusion: FreeCAD is frustrating to work with compared to other CAD platforms.

Re:Curated Code CAD (2020) by ur-whale on Tuesday June 29, 2021 @02:29AM (#27672537)
OpenSCAD, as noted by the author of the website sorely lacks a number fundamental features.

    - proper fillets

    - proper chamfers

    - surface-surface intersection
It is also limiting because it can only generate triangle meshes and can indeed be slow when models get big

However, for many situations, especially for prototyping, it is good enough and a really great tool.

It is definitely the first tool I turn to when I want to model a simple part quickly.

Re:Curated Code CAD (2020) by zimpenfish on Tuesday June 29, 2021 @01:56AM (#27672309)
> Basic things like 'hollow this object out, leaving a 3mm shell' are nearly impossible.

Yeah, I think that's a consequence of how they're constructing the objects. But things like signed distance fields make that easier* because it'd just be "expand the SDF by 3mm" - https://github.com/fogleman/sdf has `shell` for this.

* if you can wrap your head around the math/geometry, I guess

Re:Curated Code CAD (2020) by dTal on Tuesday June 29, 2021 @05:42PM (#27682084)
Except that only works when the distance field accurately represents Euclidian distance, which it certainly won't the minute you apply any sort of non-trivial distortion.
Re:Curated Code CAD (2020) by zimpenfish on Wednesday June 30, 2021 @02:45AM (#27685655)
Do you have examples?
Re:Curated Code CAD (2020) by dTal on Thursday July 01, 2021 @12:20PM (#27700801)
Sure. Non-uniform scaling, bends, and twists all render the distance field non-Euclidian.
Re:Curated Code CAD (2020) by the__alchemist on Tuesday June 29, 2021 @03:20PM (#27680491)
I agree. Articles like this may be confusing to people new to or unfamiliar with CAD: Tools like OpenSCAD aren't on the same level as the better GUI tools like SolidWorks and Fusion. Even FreeCad is a better bet for anything other than experimenting.
Re:Curated Code CAD (2020) by GistNoesis on Tuesday June 29, 2021 @04:29AM (#27673311)
You can probably try ImplicitCAD . I have not used yet, but it's on my stack of things to try for the next time OpenSCAD fails me. And it does have a shell operation.