just create a lineArray, and just change the appearance

        Appearance app = new Appearance();
        PolygonAttributes pa = new PolygonAttributes();
        pa.setPolygonMode( POLYGON_POINT );   // for points

        or

        pa.setPolygonMode( POLYGON_LINE ); // for the points

        app.setPolygonAttributes(pa);


I suppose that should work but never tried it.

Ahmed



-----Original Message-----
From: Mona Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] LineArray to PointArray


Hi:

        I'd like my program to be able to display the objects in either
wireframe (using LineArray) or points (using PointArray).  Is there a way to
convert one from another or do I have to keep 2 copies in memory?  If it is the
latter, that seems to be so wasteful ...

        All ideas will be 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".

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