Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - jd

#1
Support / jPCT-AE calcNormals() mutli threading exception
December 22, 2015, 10:34:10 PM
Hi,
I'm creating a complex GUI with jpct and need to use multi threading in many parts.

When multiple threads then try to calculate the normals of objects at the same time I get an exception like:
java.lang.ArrayIndexOutOfBoundsException: index=40 length=29
at com.threed.jpct.Mesh.calcNormalsFast(Mesh.java:988)
at com.threed.jpct.Mesh.calcNormals(Mesh.java:543)
at com.threed.jpct.Object3D.calcNormals(Object3D.java:3336)


It would really great if you could modify it to allow multi threading!

Thanks!

J. D.