creating Object3D with no indices

Started by raft, December 28, 2011, 12:25:39 PM

Previous topic - Next topic

raft

this call
new Object3D(new float[12], null, null, -1);

throws a
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
at com.threed.jpct.Object3D.<init>(Unknown Source)


I guess this is a bug

raft

i guess not. coordinate array should be a multiple of 9.

so this works:
new Object3D(new float[9], null, null, -1);

EgonOlsen

Yes...but i'll add some code that makes the engine fail more gracefully... ;)