Achieved a 5x speedup by vectorizing how colorize.py calculated triangle normals and centroids using numpy when colorizing faces. Did not immediately find a vectorized version of this calculation for colorizing the vertices, though I'm sure one exists - should I figure it out, will submit another pull request, since the speedup is significant - specially for larger meshes.
Achieved a 5x speedup by vectorizing how colorize.py calculated triangle normals and centroids using numpy when colorizing faces. Did not immediately find a vectorized version of this calculation for colorizing the vertices, though I'm sure one exists - should I figure it out, will submit another pull request, since the speedup is significant - specially for larger meshes.