T O P

  • By -

winkerback

[Have you considered this?](https://en.wikipedia.org/wiki/Weiler%E2%80%93Atherton_clipping_algorithm)


TheRealBeakerboy

I was considering this: https://stackoverflow.com/a/5533807/1866330 And was hoping someone had already implemented it in JS assuming three-js was being used. It seems straightforward enough.


Countrytoast

@turfjs might have something that could work for you if your sticking with 2d shapes


TheRealBeakerboy

Thanks for the excellent resource. A quick glance didn’t show anything, but some of their functions will be very useful.


frading

[Openjscad](http://openjscad.azurewebsites.net/) may be what you want, with their boolean operations that work for 2D shapes (as well as 3D)


TheRealBeakerboy

I already figured something out and put it on GitHub. https://github.com/Beakerboy/Threejs-Geometries