2015-01-05 87 views

回答

-1

好吧,這不是在文檔部分,但你需要使用的證明在這個例子中爆炸修改:http://threejs.org/examples/#webgl_geometry_tessellation

var explodeModifier = new THREE.ExplodeModifier(); 
explodeModifier.modify(geometry); 
geometry.computeFaceNormals(); 
geometry.computeVertexNormals(); 
//This will undo the geometry.mergeVertices(); 
0

你試過這樣做呢?它應該工作。 你需要調用

geometry.verticesNeedUpdate() 
geometry.elementsNeedUpdate() 

告訴three.js所的頂點和麪,分別發生了變化。還有其他更新函數可能需要調用(例如,如果法線已更改)。更多詳細信息,請訪問:https://github.com/mrdoob/three.js/wiki/Updates

請注意該頁面上的頂點總數不能更改的註釋。這可能需要您在臨時幾何體上進行合併,然後將頂點複製到您的渲染幾何體中。