4 ms·
Nice! I studied the library by porting it to TypeScript. https://github.com/birkir/csg.js/blob/patch-1/csg.ts https://github.com/birkir/csg.js/blob/patch-1/csg
by solidr53 8y ago
Nice! I studied the library by porting it to TypeScript.
https://github.com/birkir/csg.js/blob/patch-1/csg.ts https://github.com/birkir/csg.js/blob/patch-1/csg.ts
- gorb314 8y agoNice 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.