Live data from Hacker News

CadQuery is an open-source Python library for building 3D CAD models

cadquery.github.io

61–70 of 70 posts

Re: CadQuery is an open-source Python library for building 3D CAD models

#61
This will be interesting to try. I'm not an engineer. I decided to try "vibe coding" a CAD model, by letting AI generate Python code within VS Code. I was able to make a primitive but useful part, and sent it off to Xometry. Just a "bracket with holes" kind of thing for a prototype.

It was fun, but I still appreciate what our mechanical designers can do.

Re: CadQuery is an open-source Python library for building 3D CAD models

#62
post #19

Earlier quoted context omitted.

OpenSCAD works natively with triangle meshes. sphere() will create a spherical triangle mesh. These libraries on the other hand can natively represent a sphere for instance. This means that during CAD-ing you don't need to worry about resolution, that's a consideration for export only.

Do you mean that OpenScad performs boolean/other operations on triangle meshes, but these libraries don't until output? So they might instead use curved surfaces/edges etc as outputs for operations and only convert to triangles for output or export at the very end?

In professional CAD systems, geometry is not stored as triangle meshes but as mathematically defined surfaces (such as parametric and NURBS surfaces). Triangle meshes are only generated as approximations for rendering. This is analogous to vector graphics (SVG/EPS) versus raster images (PNG/JPG).

Any serious manufacturing will work require a STEP (or something equivalent) which stores these parametric surfaces rather than a mesh.

Re: CadQuery is an open-source Python library for building 3D CAD models

#63

Big fan overall. Designed a tension sensitive winch with this a few years back. Doing CAD with code seems like obviously the right move to me. The ability to just write new functions in python and do version control with git are super powerful. The big thing that struck me as innovative with CadQuery is the design intent query part. Selecting model geometry by relation to other geometry is way more resilient to chang…

I would be curious to hear more about what makes a winch tension sensitive.

Would it limit and hold a maximum force? Slip beyond a certain limit?

Re: CadQuery is an open-source Python library for building 3D CAD models

#64
post #9

Here's an example! I recently used their sister library (build123d, same devs) to build a rotary slide rule bracelet for multiplying three-digit numbers. It was a great experience and wouldn't generally be easy to do with Fusion 360. My bracelet gets quite a lot of comments when I wear it in public. :-) Here's an IPython notebook with lots of pictures so you can see how the different operations come together: https:/…

This is so cool! I'm going to have to try building this. Thanks for sharing!

Re: CadQuery is an open-source Python library for building 3D CAD models

#65
Back when I was actively trying to keep track of CAD/CAM software being developed which was applicable to a hobbyist CNC project, just the Python projects, esp. those which extended/enabled/replaced OpenSCAD was a full-time endeavour.

Now that there is:

https://pythonscad.org/

my hope is that this effort will begin to coalesce and focus on that tool/environment, and that further effort will be made to improve it.

Re: CadQuery is an open-source Python library for building 3D CAD models

#66
post #9

Here's an example! I recently used their sister library (build123d, same devs) to build a rotary slide rule bracelet for multiplying three-digit numbers. It was a great experience and wouldn't generally be easy to do with Fusion 360. My bracelet gets quite a lot of comments when I wear it in public. :-) Here's an IPython notebook with lots of pictures so you can see how the different operations come together: https:/…

Thanks for this! It's really fun. My older kid now has a vanilla sliderule bracelet. The younger is getting a smaller bracelet of the same design, but with dragons on it :-)

Re: CadQuery is an open-source Python library for building 3D CAD models

#67
I used build123d (a similar system) and the help of Claude Code to code a modern replica of historic guitar tuners from the 1760s. I had the results CNC cut in China directly from the STEP outputs and they are currently sitting on an instrument working great. Build123d (and CadQuery) are fantastic...

https://paulfremantleluthier.substack.com/p/gibsons-tuners-v...

Re: CadQuery is an open-source Python library for building 3D CAD models

#68
CadQuery is one of those tools that really clicks once you think of CAD as code instead of clicks. Being able to parametrize everything and version it like any other Python project is a huge win, especially for iterative designs.

It’s not as beginner-friendly as GUI tools, but for automation, reproducibility, and generating families of parts, it feels way more scalable. Curious how others here are using CadQuery in real workflows—production or mostly prototyping?

Re: CadQuery is an open-source Python library for building 3D CAD models

#69
post #66
post #9

Here's an example! I recently used their sister library (build123d, same devs) to build a rotary slide rule bracelet for multiplying three-digit numbers. It was a great experience and wouldn't generally be easy to do with Fusion 360. My bracelet gets quite a lot of comments when I wear it in public. :-) Here's an IPython notebook with lots of pictures so you can see how the different operations come together: https:/…

Thanks for this! It's really fun. My older kid now has a vanilla sliderule bracelet. The younger is getting a smaller bracelet of the same design, but with dragons on it :-)

Ah so cute!! I’d love to see pictures of your changes if you care to show them :-)

Re: CadQuery is an open-source Python library for building 3D CAD models

#70
post #69
post #66

Earlier quoted context omitted.

Thanks for this! It's really fun. My older kid now has a vanilla sliderule bracelet. The younger is getting a smaller bracelet of the same design, but with dragons on it :-)

Ah so cute!! I’d love to see pictures of your changes if you care to show them :-)

https://imgur.com/a/fssIujT

Happy to share source if you like, but it was nothing complicated: - ask aistudio.google.com to draw a bunch of dragons - trace one to svg - make the bracelet a little smaller

Post reply on HN