相交网格结果与整体网格 [英] intersecting meshes results to mesh with wholes
问题描述
我正在使用三个,我正在尝试将一个盒子网格与我正在创建的自定义几何体相交,并将其转换为几何体:
I am using THREE and I am trying to intersect a box mesh with a custom geometry I am creating and converting it to geometry using :
const g = new THREE.Geometry().fromBufferGeometry(shape3d)
我的目标是向自定义几何体添加面,这就是我这样做的原因.所以我希望从我的自定义几何体 + 多边形的交点处取回盒子.
I aim to add faces to the custom geometry, that is why I do that. So I expect to get back from the intersection my custom geometry + polygons that the box has.
我确实明白了,虽然我也有一些漏洞,如下图所示:
我使用了许多现有的 csg 版本,manthrax 一个,ThreeCSG 等,但没有运气!
I used many csg versions that are out there, the manthrax one, the ThreeCSG etc but no luck!
谢谢
推荐答案
我建议你将 bevelEnabled:false 设置为你的网格挤压,因为我是通灵者,我可以在脑海中看到你的代码.:D
I suggest you set bevelEnabled:false to your mesh extrusion, because I am psychic and I can see your code in my head. :D
这篇关于相交网格结果与整体网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!