Hacker News new | ask | show | jobs
by YuechenLi 13 days ago
I wouldn't call geometric modeling "fun" to work on, you get to 80% of the way there super quickly, and the remaining 20%(boolean robustness, fillet/chamfer) is a never ending swamp if done with conventional approach.

I think my implementation is the only open-source kernel with actual AP242 PMI support though and has the ability to label STEP files and generate 2D drawings directly from PMI. But it's code CAD and still fairly janky, if you want to try it out in the browser:

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

Repo:

https://github.com/yuechen-li-dev/HeliosCAD

1 comments

Maybe "exciting" would be a better word than "fun"?

People get excited about a cool looking 3D model. They don't get excited about implementing different PMI standards, or reading the ISO and AWS standards for weld symbols, or making sure a model saved 5 versions and 20 years ago still loads and behaves identical to how it did back then, or making sure hide/show in views from imported third-party formats works correctly.

I took a look, but I didn't have any luck loading any of the NIST test STEP files from https://www.nist.gov/ctl/smart-connected-systems-division/sm...

That's odd, considering I run round-trip import/export tests on the NIST test step files every commit.

It works for me on both Chrome and Firefox.

https://i.imgur.com/lWU5uP6.png https://i.imgur.com/2pyZ49X.png

Do you have the error message when you try to import CTC-01? And did you use Open File instead of Import STEP and it didn't work? because if you did, that's probably something I should fix in the UI.

Sure: https://photos.smugmug.com/photos/i-qptfbk9/1/KMRfC7G6Trxfcx...

I went through "Open File". When I tried just now some of the files opened, but several still failed.

Should be hotfixed now, and the NIST AP242 parts should import/export at least. The kernel was importing with default tolerance of 0.001mm instead of the part's declared tolerance of 0.01mm. Thanks.

And I think you understand now why I said build a geometry kernel is really a slog sometimes.

I work on CAD software. I know the kernel is a slog, but I think the other parts are more so.

Usually the external format readers and writers are built on top of the kernel.

Aetheris kernel for Helios is very different in that STEP AP242 read/write is part of the kernel itself, hence the term "STEP AP242 Native-ish", because the internal representation of the geometry maps directly to a mostly analytical subset of STEP instead of a different internal representation. This was critical because Aetheris doesn't mutate geometry from repeated STEP import/export, so any Aetheris exported geometry always reimports/reexports the exact same way, even though it is slower, which I don't think any other kernel on the market can claim and eliminate a class of error altogether.