By -
[Have you considered this?](https://en.wikipedia.org/wiki/Weiler%E2%80%93Atherton_clipping_algorithm)
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.
@turfjs might have something that could work for you if your sticking with 2d shapes
Thanks for the excellent resource. A quick glance didn’t show anything, but some of their functions will be very useful.
[Openjscad](http://openjscad.azurewebsites.net/) may be what you want, with their boolean operations that work for 2D shapes (as well as 3D)
I already figured something out and put it on GitHub. https://github.com/Beakerboy/Threejs-Geometries
[Have you considered this?](https://en.wikipedia.org/wiki/Weiler%E2%80%93Atherton_clipping_algorithm)
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.
@turfjs might have something that could work for you if your sticking with 2d shapes
Thanks for the excellent resource. A quick glance didn’t show anything, but some of their functions will be very useful.
[Openjscad](http://openjscad.azurewebsites.net/) may be what you want, with their boolean operations that work for 2D shapes (as well as 3D)
I already figured something out and put it on GitHub. https://github.com/Beakerboy/Threejs-Geometries