If you did not use setCoordRefFloat() to set the coordinates, then doing a getCoordRefFloat() will return null value. The get() values for Geometry ByReference returns the pointer that has been set by the user. In your case, only getColorRefFloat() and getCoordRef3f() will return non-null values. -Uma > Delivered-To: [EMAIL PROTECTED] > MIME-Version: 1.0 > X-Sender: [EMAIL PROTECTED] > Date: Sun, 12 Aug 2001 03:34:18 +0200 > From: Michael Nischt <[EMAIL PROTECTED]> > Subject: [JAVA3D] Geometry BY_REFERENCE > To: [EMAIL PROTECTED] > > hi, > > just played a bit with GeometryArrays BY_REFERENCE > > using both methods for one GeometryArray: > void setColorRefFloat(float[] coordinates); > void setCoordRef3f(Point3f[] coordinates); > > last one is used for rendering, but both references are keept right ? > > > [ C O D E ] > float[] c1 = { -1 , 0 , 0, 1 , 0 , 0 , 0 , 1, 0 }; > Point3f[] c2 = { new Point3f(-2, 0, 0) , new Point3f(0, 0, 2), new Point3f(0, > 2, 0) }; > > TriangleArray ta = new TriangleArray(3, GeometryArray.BY_REFERENCE | > GeometryArray.COORDINATES); > ta.setColorRefFloat(c1); > ta.setCoordRef3f(c2); > > float[] c3 = ta.getCoordRefFloat(); > ta.setCoordRefFloat(c3); // <---- adding this line crashes the > programm, why ? > > Shape3D shape = new Shape3D(ta); > [ / C O D E ] > > with adding the marked line crahses the programm > > is this a bug ? > any suggestions ? > > > greetings > Michael Nischt > > (using SUN JDK 1.3.1 with Blackdown J3D 1.2.1 and/or SUN JDK 1.4.0 beta with > Blackdown J3D 1.2.1 both on Linux) =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".