]> git.tdb.fi Git - libs/gl.git/commit
Rewrite triangle strip generation in the Blender exporter
authorMikko Rasa <tdb@tdb.fi>
Sun, 5 May 2019 13:54:37 +0000 (16:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 6 May 2019 06:05:32 +0000 (09:05 +0300)
commit09c8337778f6d2e595016d02023297d958cf6316
tree0aac4cf5024afcada1216a8e6168eef97ab51349
parent3aefe3f4132cccc64d21fd7a0ca14eb5967d77f5
Rewrite triangle strip generation in the Blender exporter

The old algorithm had many of the right ideas but was too clever by half
and consequently very complex.  Use a simpler score-based algorithm
developed by Tom Forsyth.  Also reorder vertices to make memory accesses
to them occur in a more linear fashion.

Options related to cache optimization were removed since there's
no good reason not to optimize.
blender/io_mspgl/__init__.py
blender/io_mspgl/export_mesh.py
blender/io_mspgl/mesh.py