Hi Victor, Thanks, at least we can confirm the bug. I'll open an issue for this, and hopefully we can get it fixed soon. As for converting indexed to regular vertex lists, I suppose you can just take the index list, and use it to construct a new vertex list from the old one.
As a very crude example, something like the following would probably work (but is certainly slow): >>> vlist = [0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4] >>> size = 3 # v3f >>> new_vlist = [vlist[i:i+size] for i in range(0, len(vlist), size)] >>> new_vlist [[0, 0, 0], [1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]] >>> You could then use the index list directly to grab the vertices by their original index. I'm sure there are a million better ways to do this. On Tuesday, January 30, 2018 at 2:12:55 AM UTC+9, Wasp Corporation wrote: > > Thank you for your help > > I thought I did something wrong when passing my variables as reference to > the functions. I am indeed using indexed vertex list and when tried your > script I had the same behavior: The top row works as expected but not the > one below using indexed vertex list. > > As a temporary workaround, Is there a simple way to convert an indexed > vertex list to a regular vertex list ? Because my sphere are created using > a recursive process. I understand that it will come at the price of having > multiple point at the same coordinate instead of just one right ? > > As for the bug in the source code, I am definitely not skilled enough to > solve this issue. > > > > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
