i found a much faster way to generate the list of uvs. currently i do this in a very stupid way for python like:
Code:
uvs = []
...
if uv not in uvs:
    uvs.append(uv)
and later when i write out the triangles i look up the uv indices like that:
Code:
uvs.index(uv)
this scales very badly with objects that have ten thousands of vertices.

if done with a set and dictionary like that:
Code:
uvs = set()
...
uvs.add(uv)
and:
Code:
# convert set to dictionary with indices
uvs = dict([(k, v) for v, k in enumerate(uvs)])
# index loopup
uvs[uv]
an object with ten thousands of vertices takes the blink of an eye instead of minutes. :p probably i will upload a new corrected version soon. still didn't have time for the wmb version though.