[JAVA3D] Geometry Array - getColors(index, Color3f[ ])

2000-08-03 Thread SHRAVAN SHEELA
Hi, I get a NullPointer Exception with the following code... What is going wrong. Color3f[] colorArray = new Color3f[2000]; //quadArray is in my Geometry, the number of vertices in the geometry is more than 2000. quadArray.getColors(0,colorArray) //similar problem with getCoordinates(..)

Re: [JAVA3D] Geometry Array - getColors(index, Color3f[ ])

2000-08-03 Thread J. Lee Dixon
for coordinates... J. Lee Dixon Software Engineer SAIC - Celebration, FL [EMAIL PROTECTED] -Original Message- From: SHRAVAN SHEELA [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 03, 2000 3:55 AM To: [EMAIL PROTECTED] Subject: [JAVA3D] Geometry Array - getColors(index, Color3f[ ]) Hi

Re: [JAVA3D] Geometry Array - getColors(index, Color3f[ ])

2000-08-03 Thread Christopher Collins
Hi Shravan, I experienced this problem in my first week working with Java3D. Maybe my workaround is incorrect, but I think you have to create the elements of your Color3f array and Point3f array individually first. The getCoordinates and getColors methods do not allocate, they only assign the