Mr.doob 7 年之前
父节点
当前提交
7381bbd3b6
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/manual/en/introduction/How-to-update-things.html

+ 8 - 0
docs/manual/en/introduction/How-to-update-things.html

@@ -114,6 +114,14 @@ line.geometry.setDrawRange( 0, newValue );
 line.geometry.attributes.position.needsUpdate = true; // required after the first render
 				</code>
 
+				<p>
+					If you change the position data values after the initial render, you may need to
+					call `.computeBoundingSphere()` in order to recalculate the geometry's bounding sphere.
+				</p>
+				<code>
+line.geometry.computeBoundingSphere();
+				</code>
+
 				<p>
 					[link:http://jsfiddle.net/w67tzfhx/ Here is a fiddle] showing an animated line which you can adapt to your use case.
 				</p>