News for hackers. Stuff that matters.
Re:GenCAD by twelvechairs on Sunday May 17, 2026 @11:32PM (#48175274)
OpenSCAD uses CSG which is generally better. Easy to convert CSG to BREP. Cant generally do the opposite
Re:GenCAD by auxiliarymoose on Monday May 18, 2026 @12:08AM (#48175485)
It's easy to convert because CSG is a small subset of what BREP can do.

It's analogous to "all squares are rectangles, but not all rectangles are squares" (squares=CSG, rectangles=BREP)

CSG by itself isn't suitable for most CAD use-cases.

Re:GenCAD by rowanG077 on Monday May 18, 2026 @12:15AM (#48175516)
How can I convert openSCAD models to true STEP files? As in no meshes. I Literally have wanted that for years.
Re:GenCAD by tinmith on Monday May 18, 2026 @02:30AM (#48176198)
You need to use https://github.com/smurfix/buildscad which can convert OpenSCAD to Build123d, then you can export a STEP file. It has a few limitations, but for simple OpenSCAD files it can generate an equivalent representation in OpenCASCADE.
Re:GenCAD by rowanG077 on Monday May 18, 2026 @02:46AM (#48176273)
Yeah, that fails for even moderately complex models...