Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not triangulate faces #82

Open
jcowles opened this issue Sep 13, 2018 · 2 comments
Open

Do not triangulate faces #82

jcowles opened this issue Sep 13, 2018 · 2 comments
Milestone

Comments

@jcowles
Copy link

jcowles commented Sep 13, 2018

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?

@einarf
Copy link
Member

einarf commented Sep 16, 2018

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
Copy link
Member

einarf commented Feb 22, 2019

#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 einarf added this to the 2.0 milestone Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants