Skip to content

Commit 33487ad

Browse files
mrdoobDavidPeicho
authored andcommitted
Merging mrdoob#14283
1 parent 5a03675 commit 33487ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ <h3>[page:BufferGeometry]</h3>
114114
line.geometry.attributes.position.needsUpdate = true; // required after the first render
115115
</code>
116116

117+
<p>
118+
If you change the position data values after the initial render, you may need to
119+
call `.computeBoundingSphere()` in order to recalculate the geometry's bounding sphere.
120+
</p>
121+
<code>
122+
line.geometry.computeBoundingSphere();
123+
</code>
124+
117125
<p>
118126
[link:http://jsfiddle.net/w67tzfhx/ Here is a fiddle] showing an animated line which you can adapt to your use case.
119127
</p>

0 commit comments

Comments
 (0)