PyWavefront icon indicating copy to clipboard operation
PyWavefront copied to clipboard

Do not triangulate faces

Open jcowles opened this issue 7 years ago • 2 comments

It seems triangulation is forced if one wants to read the faces from the obj file.

Is it possible to not triangulate and still read the face data?

jcowles avatar Sep 13 '18 15:09 jcowles

Right now the parser will always triangulate. It's probably not hard to modify the following section to not triangulate based on some option

https://github.com/greenmoss/PyWavefront/blob/2f18318674d85cb7c16298110161a15b38c53f92/pywavefront/obj.py#L416-L424

einarf avatar Sep 16 '18 12:09 einarf

#88 would solve this. I completely agree that this is a necessary change. It's a result of the librarys original focus of rendering objects with VBOs pyglet. It needs to be modernized quite a bit.

einarf avatar Feb 22 '19 03:02 einarf