From:   Shiming Dong
Sent:   Wednesday, 21. April 2004 17:17

> I tried to draw a group of sticks in a picture. They
> haver different coordinates, length and directions. I
> only know the coordinates of the head and tail of each
> stick.

Start- and endpoint, I assume?
How about the diameters?

> Which class can I use to draw them?

None of the "factory-built" that come along with J3D.
You'll have to build your own primitive by using a Sphere() (might
do for the "head", I guess) of appropriate diameter and a Cylinder()
(which'll make up your "tail") of appropriate diameter and length,
put both of them in a TransformGroup() together with the needed
Transform3D()s, each and join both in a TransformGroup() which'll
serve as your primitives root.
Doing so, you might want to extend from "Primitive".
The different Appearance()s and Material()s are of no further concern
to you then.

> Thank you!

You're welcome.

Hth,
Andr�

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