Dear Riccio,

I just cut your code and pasted it to my file without any major
modification. All of what I changed was only your BranchGroup name, objRoot,
to fit my own BranchGroup. It worked well!!! I got a red line with 5.0f
thicknes.

Pramual S.

>From: Gianni Riccio <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] LineArray!
>Date: Fri, 9 Nov 2001 11:17:56 +0100
>
>Hi Pramual,
>this is my code but I don't change the tickness of my LineArray....why??
>
>//LineArray
>Color3f lColor1   = new Color3f(1.0f, 0.0f, 0.0f);
>
>         LineAttributes la = new LineAttributes();
>         la.setLineWidth(5.0f);
>
>          Appearance appla = new Appearance();
>          appla.setLineAttributes(la);
>
>
>         LineArray axisXLines = new LineArray(2, LineArray.COORDINATES |
>LineArray.COLOR_3 );
>
>        axisXLines.setCoordinate(0, new Point3f(-1.0f, 0.0f, 0.0f));
>        axisXLines.setCoordinate(1, new Point3f( 1.0f, 0.0f, 0.0f));
>
>        Shape3D s3d = new Shape3D();
>         s3d.setAppearance(appla);
>         s3d.setGeometry(axisXLines);
>         objRoot.addChild(s3d);
>
>        axisXLines.setColor(0,lColor1);
>        axisXLines.setColor(1,lColor1);
>
>----- Original Message -----
>From: "Pramual Suteecharuwat" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, November 09, 2001 10:30 AM
>Subject: Re: [JAVA3D] LineArray!
>
>
> > Assume that "stripA" is your geometry object and "YourBranchGroup" is
>the
> > BranchGroup object, try doing something like this:
> >
> >
> > // --- Appearance -----------------------
> > LineAttributes pa = new LineAttributes();
> > pa.setLineWidth(3.0f);
> > pa.setLineAntialiasingEnable(true);
> >
> > Appearance app = new Appearance();
> > app.setLineAttributes(pa);
> >
> > Shape3D s3d = new Shape3D();
> > s3d.setAppearance(app);
> > s3d.setGeometry(stripA);
> >
> > YourBranchGroup.addChild(s3d);
> >
> > ...
> >
> > Enjoy,
> >
> > Pramual S.
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
> >
>===========================================================================
> > 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".


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

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