Hacker News new | ask | show | jobs
by virtualritz 19 days ago
I had a brief look at Aetheris and correct me if I'm wrong but it can't do any CSG between real world assemblies. All code is for special cases like cylinders, cones, planes.

I do not see any code for general NURBS/trimmed-surface SSI. And after SSI classification (what to keep and what to throw away) is just as difficult.

It seems a lot of people are working on CAD kernels these days, in Rust or otherwise, and clanker-written READMEs and messages over-promise on abilities because the authors have never worked with real world assemblies and trust what their agents tell them they "implemented".

I tried importing two simpler STEPs you can find online, boxy-with-surfacetex.step (fails import entirely) and raspberry-pi-4-model-b.step ( Step242Importer.ImportBody fails, Step242Importer.ImportRidgidRoots succeeds, Step242AssemblyImporter.Import crashes).

On the latter a simple BrepBoolean.Subtract(ridgid_roots, box) returns: NotImplemented: "bounded boolean family only supports recognized axis-aligned boxes"

This is a simple as it gets with a real world assembly. A box is just six plane intersections. And Aetheris can't do it.

I also tried a furniture STEP from a designer friend, Sascha Ulber the simple version (w/o rolling ball fillet surfaces) of his Coffy chaiselongue. The STEP came from Rhino3D. It succeeded the Step242AssemblyImporter.Import but all booleans I tried gave the same error as the PI model above.

1 comments

Ok, sorry for the late response as I had work, but I think I should spend some time discussing the architecture.

The reason I say Aetheris is next generation is that while version 1(currently preserved on a separate branch)is a much more conventional CSG like kernel with 3D boolean, version 2 is its own architecture and doesn't do direct 3D boolean at all in the current production path, and the vestigial 3D boolean code was left as a fallback as a "build your own boolean" kit. To put it simply, what Aetheris does instead is that it compiles code through multiple intermediate representations into STEP geometries, which is why all kernel operation is done through Firmament V2 DSL and called via templates.

If you are talking about complex assemblies, I have had the 400+ part difference engine mockup assembly on the repo README for months now. But if you want to see more assemblies, I've finally got the frontend to an acceptable (though still buggy) state.

https://helios-cad-wasm.yuechenli.chatgpt.site/

One of the weaknesses of Aetheris is that it's not currently very import tolerant for old nonconformant STEP files well as it usually rejects import of degenerate geometry instead of healing silently. As the only parts I've tested on are modern AP242 from NIST and public files from McMaster, which is why AP214 and 203 imports are still listed as experimental for a reason.

- boxy-with-surfacetex.step is indeed a very simple part, but it is also nonconformant: 30 of the file’s cylindrical faces are bands bounded by two full circles, and the exporter (ST-Developer v14) marks both circles as FACE_OUTER_BOUND when the STEP schema allows at most one outer bound per face.

-raspberry_pi_4_model_b.step: part of it was importer bugs that was never caught (Pcurve on cone was read with incorrect convention, for example), part of it is the assembly contains degenerate geometry (a circle was written as three 120-degrees NURBS arcs, pcurves advancing in the wrong direction, geometry gaps that has the faces and edges disagree with each other on tolerances) etc.

But I think both of these bug report should be on the issue tracker on the repo instead of on HN...