OpenSCAD is a solid 3D CAD modeller for programmers. Normally you would install the stable version, but that is quite old. I prefer to run the most current development snapshot. This is the current testing version. OpenSCAD lists a DMG for it on thier website but they don’t give instructions on how to install it via Homebrew. Here’s the command to do that.
brew install --cask openscad@snapshot