Hacker News new | ask | show | jobs
by solidr53 2806 days ago
Nice! I studied the library by porting it to TypeScript.

https://github.com/birkir/csg.js/blob/patch-1/csg.ts

1 comments

Nice work...

I've ported this algorithm to Python, but mine is nowhere as succinct as yours (or the original). For my needs, I require the meshes to remain watertight (if the inputs are watertight), and this specific implementation doesn't preserve it. But I still love the algorithm due to its conceptual simplicity.