Hi Robert,
Look into ....\demo\java3d\GearTest. There is a source file
called Shaft.java. It generates indeed a shaft, so a cylinder
and top and bottom face. But, I'm sure you will be able to
modify the code to the tube you want.
Dirk
----- Original Message -----
Sent: Wednesday, October 15, 2003 9:23
AM
Subject: [JAVA3D] Tube class
Hi all,
I want to create a class (I will call it
Tube) that will represent a cylinder with inner and outer radio, lenght and an
angle refered to its axial axis that represent a section of the Tube (this
data will be read from a Database) . The classes that I had created
before were always made with plane surfaces, basically using QuadArrays and
TriangleArrays. I wonder if anybody can make me any suggestion of how start
with this. I thought about creating circunferences with pointarrays and
afterwards conecting the circunferences with quadarrays but I think that there
must be a better way, isn't it?
Thanks all.
Boby
===========================================================================
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".
|