File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ We also use pyrr for vector/matrix math/representation.
3232 This was benchmarked generating various vertex formats with 1M vertices.
3333 For fairly small data sizes doesn't matter that much.
3434
35- The naive way to generate geometry would probably look something like this:
35+ The naive way of generating geometry would probably look something like this:
3636
3737.. code-block :: python
3838
@@ -66,10 +66,9 @@ We move on to version 2:
6666.. code-block :: python
6767
6868 def random_points (count ):
69- # Pre-allocate a list containing zeros of length count
70- # We multiply by 3 to make room for a x, y and z value
69+ # Pre-allocate a list containing zeros of length count * 3
7170 points = [0 ] * count * 3
72- # Loop count time incrementing by 3 every frame
71+ # Loop count times incrementing by 3 every frame
7372 for p in range (0 , count * 3 , 3 ):
7473 # Let's pretend we calculated random values for x, y, z
7574 points[p] = x
You can’t perform that action at this time.
0 commit comments