pywavefront / PyWavefront

Python library for importing Wavefront .obj files
BSD 3-Clause "New" or "Revised" License
312 stars 80 forks source link

Apparently no group ('g') support #112

Closed ismaelharunid closed 4 years ago

ismaelharunid commented 4 years ago

The 'g' lines (groups) are not supported.

einarf commented 4 years ago

This is correct. Groups are not supported. Please elaborate what this issue is about.

ismaelharunid commented 4 years ago

Just confirming. But can you tel me was it just a low priority, oversight or not to be implemented? If not to be implemented, do you think it's not needed? If I added this would it be of value? My issue was that it wouldn't read some of my .obj files because of the no 'g' line support. I got around it though. Oh and I sorry, I'm not sure if you got a notice but I tried to commit my branch onto yours by accident. Obviously it didn't take, but my apologizes anyway.

einarf commented 4 years ago

Not supporting grouping should not stop you from loading an obj file. It just means the the vertex data will not be grouped the way you want it. The main reason this libraray doesn't support groups is because it groups vertex by materials to make the objects fast to render. A 2.x version of pywavefront would be needed to actually add support for this.