Subtracting a 3D Sink from a 3D Cupboard-Board in ThreeJS

China☆狼群 提交于 2019-12-11 15:37:21

问题


I have two separate obj.s - a sink and a board (the top of a bathroom-cupboard). The sink needs to be placed on top of the board, like this: http://www.farline.cz/orig-image/364470b4db.jpg?c=NS0xNDkzMjk2MjIy (just an examle from image-search)

However, of course, both objects overlap, so the board is still there where the hole of the sink is supposed to be. Using a boolean to subtract the sink from the cupboard isn't enough, because it won't cut out the hollow space.

What options do I have to go about this? Is there a way to have the sinkhole considered a part of the boolean that cuts away from the cupboard?

Btw. this needs to be done with several sinks of various shapes and measurements. I considered adding an invisible cube with the same measurements as the sink to substract its mass from the board, but it's a highly suboptimal solution (for it'd need to be redone for every sink individually + some sinks have round shapes).

来源:https://stackoverflow.com/questions/53834360/subtracting-a-3d-sink-from-a-3d-cupboard-board-in-threejs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!