Hi:

        I'm getting the following error and I cannot figure out why:

Exception occurred during event dispatching:
java.lang.NullPointerException
        at
javax.media.j3d.GeometryArrayRetained.setCoordinates(GeometryArrayRetained.java:
2680)
        at javax.media.j3d.GeometryArray.setCoordinates(GeometryArray.java:976)
        at jdend$jdendShape.initCentroidRender(jdend.java:921)

        I've looked at my code over and over, added print statements to look at
values, and looked at sample sources using PointArray and still cannot figure
out what I am doing wrong.

        Here are some code excerpts along with their associated line numbers:

        845     Point3d[] centroids;
        846     PointArray dots;
        ...
        867     centroids = new Point3d[object_data.size()];
        ...
        893     centroids[planei] = trace_data.centroid3D();
        ...
        920     dots = new PointArray ( centroids.length,
                                                PointArray.COORDINATES );
        921     dots.setCoordinates ( 0, centroids );

        All help and pointers are greatly appreciated.

Sincerely,

Mona

==================================================================
Mona Wong
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/

"The truth shall set you free, but first it will piss you off"
                                A Landmark instructor
==================================================================

===========================================================================
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".

Reply via email to