Mr.doob 7 năm trước cách đây
mục cha
commit
7381bbd3b6
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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>