Is there a way to divide one THREE.Mesh into several meshes?
for example a mesh with 2000000 polygons into 2000 meshes with 1000 polygons?
Edit: I guess you can not save the exact same amount of polygons/vertices after "cutting" the original mesh, but approximation would be great as well.
答案 0 :(得分:0)
就像球体爆炸成1000个迷你球体一样? 也许在JS中编写一个函数,从场景中获取一个网格,然后以某种方式检索多边形,如果可能的话并将它们分开。然后创建一个循环,用你从数学方面得到的值创建新的网格,并删除你用过的网格
"scene.remove( object);"
使用随机x,y,z坐标在旧网格中添加新网格
编辑:
也许看看这些例子:
https://threejs.org/examples/#canvas_particles_sprites
或