Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java3D - TransformGroup Arrays...

10 views
Skip to first unread message

Ernest Wong

unread,
Feb 15, 2000, 3:00:00 AM2/15/00
to
Hello,
I need help on creating dynamic array of TransformGroups in Java3D. The
following code:
TransformGroup tgTemp[] = new TransformGroup[50];
Has no problem when compiling. But whenever I try to do something with one
of the objects in the array:
eg. tgTemp[1].setTransform(some_Transform3D_object);
the program generates NullPointerExceptions. It acts like the array doesn't
exist... Has anyone out there successfully created an array of
TransformGroups in their programs? If so can you help me out? I appreciate
any feedback. Thanks.
Ernie

skla...@my-deja.com

unread,
Feb 29, 2000, 3:00:00 AM2/29/00
to
In article <88c05l$s31$1...@soapbox.cs.bham.ac.uk>,
Have you filled the array?
for(..)tgTemp[i]=new TransformGroup();
??


Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages