Skip to content

Commit 96ac5e0

Browse files
authored
Update webgl-3d-geometry-lathe.md
1 parent 07a5a35 commit 96ac5e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webgl/lessons/webgl-3d-geometry-lathe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,12 @@ function getVertIndex(position) {
807807
</pre>
808808
<p>It worked! It got rid of the seam. Unfortunately it took several seconds to run and
809809
made the interface unusable. This is because it's a O^2 solution. If you slide the sliders
810-
for the most vertices(distance/divisions) in example above you can generate ~114000 vertices.
811-
For an O^2 that's up to 12 billion iterations that have to happen.
810+
for the most vertices, low distance, high divisions, in the example above you can generate ~114000 vertices.
811+
For an O^2 that's around 12 billion iterations that have to happen!
812812
</p>
813813
<p>I searched the net for a easy solution. I didn't find one. I thought about putting all the points
814814
in an <a href="https://en.wikipedia.org/wiki/Octree">octree</a> to make finding matching points
815-
faster but that seems like a way too much for this article.
815+
faster but that seemed like a way too much for this article.
816816
</p>
817817
<p>It was then I realized if the only issue is the end points maybe I could add a modulo
818818
to the math so that the points were actually the same. The original code was like this

0 commit comments

Comments
 (0)