jaydeepmalviay / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Models with high number of vertices fails to load #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ObjFace class constructor assumes that the number of vertices in mode would be 
less then 256 ???

to be more specific, line:

v[index] = (short) (Short.parseShort(subParts.nextToken()) - 1);

so if model has more than 256 vertices this causes NumberFormatException

Am I missing something here?

Original issue reported on code.google.com by bee...@gmail.com on 12 Sep 2012 at 12:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry, not 256 but 32767 vertices is obviously max since this is max value of 
short. However, I had a model with more vertices that that and loader failed.

Original comment by bee...@gmail.com on 12 Sep 2012 at 12:32