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
For a performance boost, don't scan the file to count the number of vertices, normals, texCoords, faces.
Instead provide parameters to the function. These default to -1.
If vertices is -1, then scan the file and count.
Otherwise, allocate arrays to those initial sizes. If the provided size is greater than the actual encountered, print a message to the screen informing the user they allocated too much memory. If the provided size is too small, print a message to the screen informing the user they didn't allocate enough memory. TBD - resize the array? Or fail?
The text was updated successfully, but these errors were encountered:
For a performance boost, don't scan the file to count the number of vertices, normals, texCoords, faces.
Instead provide parameters to the function. These default to -1.
If vertices is -1, then scan the file and count.
Otherwise, allocate arrays to those initial sizes. If the provided size is greater than the actual encountered, print a message to the screen informing the user they allocated too much memory. If the provided size is too small, print a message to the screen informing the user they didn't allocate enough memory. TBD - resize the array? Or fail?
The text was updated successfully, but these errors were encountered: