mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
101.55k stars 35.29k forks source link

GeometryUtils::difference() method #2380

Closed powtac closed 12 years ago

powtac commented 12 years ago

I would like to see a "difference()" functionality, to cut off a geometric area out of another. Similar to this one: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language#difference

Or am I missing something? Does something like this already exists?

mrdoob commented 12 years ago

http://learningthreejs.com/blog/2011/12/10/constructive-solid-geometry-with-csg-js/ http://stemkoski.github.com/Three.js/CSG.html

powtac commented 12 years ago

Cool! Thank you!