You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to create another function 'addSurfaceWithTexCoords'. Otherwise, it forces texcoords in the mesh even if you are not using them.
Overall, I think these shape generator functions (yes, my initiative) need to be rethought to allow a finer granularity of control without adding unnecessary overhead.
The reason will be displayed to describe this comment to others. Learn more.
You could have boolean flags with default values for both normals and texcoords to all the generators, or a single bitwise attribute argument to do the same..
7e1d7ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to create another function 'addSurfaceWithTexCoords'. Otherwise, it forces texcoords in the mesh even if you are not using them.
Overall, I think these shape generator functions (yes, my initiative) need to be rethought to allow a finer granularity of control without adding unnecessary overhead.
7e1d7ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could have boolean flags with default values for both normals and texcoords to all the generators, or a single bitwise attribute argument to do the same..
7e1d7ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bit flag is probably the best approach to future proof the API. Another thought would be to move to an object model to hide these parameters.