Models with high number of vertices fails to load
GoogleCodeExporter opened this issue · 3 comments
GoogleCodeExporter commented
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
[deleted comment]
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
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