Stykka / glTF-Bin

[Deprecated See https://github.com/mcneel/glTF-IO] glTF exporter for Rhinoceros. Supports: mode-text, mode-binary, binary-draco, materials, and textures.
MIT License
31 stars 18 forks source link

Mesh Export Options #52

Closed jrz371 closed 3 years ago

jrz371 commented 3 years ago

It's pretty big, but don't be scared of the size. Most of it was moving the mesh export out of the DocConverter to a new MeshConverter class.

Resolves #50 Resolves #48 Resolves #29

For #48 it still doesn't support the Use Render Mesh option since I can't see the use. If a user needs it I can open a new issue and resolve it. The other options are in and vertex colors are also supported now. I had a user model need them the other day. There is a known issue with Draco not correctly writing the vertex colors. The color order needs specified but the fix that allows it won't be in until Rhino 7.7. I wasn't sure about how often the dialog should be skipped for #50 so it only works on the export when run from Rhino export and not the command.