2013-06-27 27 views

回答

2

SphereGeometry創建時僅使用半徑參數。之後沒有內置的方法來改變它。您需要手動修改幾何頂點,或使用新的半徑創建新的SphereGeometry。

或者,您可以縮放球體。在你的updatesphere()函數中,嘗試類似於:

radius = parameters.radius; 
var scale = radius * 0.1; // adjust the multiplier to whatever 
sphere.scale.x = scale; 
sphere.scale.y = scale; 
sphere.scale.z = scale; 
+0

感謝您的幫助。我已經設法使用比例函數,但這並不能真正解決改變球體上線段數量的問題。我希望有一個簡單的解決方案,太糟糕了...... –