mrdoob / three.js

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

Push Pull Extrusion (extruding from another object) Like in Google Sketchup #1745

Closed playpianolikewoah closed 12 years ago

playpianolikewoah commented 12 years ago

Is it possible to extrude (or push), for example, a cylinder, or a cube into a plane or a cube? Like this: http://www.bigbluesaw.com/saw/images/stories/googleSketchupExport/320/SketchUp-4.png I am talking simple, like rectangles circles and irregular polygons.

derekmwright commented 12 years ago

Sounds like you are looking to do CSG (constructive solid geometry) - It uses boolean operations on 2 or more shapes. Check out this link: http://learningthreejs.com/blog/2011/12/10/constructive-solid-geometry-with-csg-js/

playpianolikewoah commented 12 years ago

You are right.. That is exactly what I am looking for. I did not know there was a word for it. How did I spend all this time looking and never know the name. Thank you thank you!