Brandon,

This is from an example in my forthcoming book that illustrates the basics
of plotting points.

Sincerely,

Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com


// routine to create a Shape3D object composed
// from a point cloud of some random points
protected Group createPoints()
{
        Group group = new Group();

        final int kNumPoints = 200;
        final double kRadius = 10.0;
        Point3d points[] = new Point3d[kNumPoints];

        for( int n = 0; n < kNumPoints; n++ )
        {
                double randX = (java.lang.Math.random() * kRadius ) - kRadius/2;
                double randY = (java.lang.Math.random() * kRadius ) - kRadius/2;
                double randZ = (java.lang.Math.random() * kRadius ) - kRadius/2;

                points[n] = new Point3d( randX, randY, randZ );
        }

        PointArray pointArray = new PointArray( points.length,
GeometryArray.COLOR_4 | GeometryArray.COORDINATES );
        pointArray.setCoordinates( 0, points );
        Shape3D shapePoints = new Shape3D( pointArray, new Appearance() );

        group.addChild( shapePoints );
        return group;
}



-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Brandon Kohn
Sent: 19 October 1999 18:43
To: [EMAIL PROTECTED]
Subject: plotting a single point


Is it possible to plot a single pixel in java3d?
Any help would be appreciated.

Brandon Kohn

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