Figure I try pitching at least, but would you consider evaluating my Aetheris kernel to use as Aircad's geometry kernel over OCCT? https://github.com/yuechen-li-dev/Aetheris There are currently a lot of newer browser CAD projects that already wraps OCCT WASM, like FluidCAD and Chili3D. And as you said previously, current CAD tools are slow to improve, and part of the reason is because of using kernels first built in the 1980s, and projects like Shapr3D and Plasticity both hit limitations of their existing kernels and switched to Parasolid when their project got bigger, and OCCT's per entity tolerance issue is pretty well know by now. On another topic, getting a plate with thousands of holes to mesh in under a second is some serious performance, and I do agree with your conclusion that most CAD apps are slow not because of programming language but because accurate NURBS math is inherently slow, but their is also the issues with the 2D constraint solver and fillet/boolean algorithms too. Happy to talk more about the geometry kernel stuff too.
That's awesome. I'm also working on a new B-Rep kernel for my own modelling app. It's small, ~2MB, but already handles a lot of complex modelling and has constraint-based sketching - I'm focusing on watertight shapes for 3D printing, not exact accuracy. All operations map to KCL (KittyCad - now Zoo) so it's possible to edit the code directly. Might be worth exchanging notes at some point :)
Not to brag too much, but I believe that my own code CAD language, Aetheris' Firmament, is a bit ahead of KCL in terms of language design, so maybe take a look and see if Firmament is a better target for you to map to? https://github.com/yuechen-li-dev/Aetheris/blob/master/fixtu...
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.
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...
