Hello, Don
OKay ! I find your solution interesting. Could you send me the part of the code that
does so ?
Thanks in advanced !!
Dani
_______________________________________
I've done something similar to create a very specific shape I needed. In my
case I was working with a 2-point line rotated to create a sorta ribbon, but
the same idea will work with a multi point line.
First generate a PointArray with enough points to define the final object
(all at the origin).
Then set the first set of points (your 2D line) where you want them, then
pass their positions to a set of temporary Point3D's. Then perform a
rotation on the temporary points and pass the result to the next set of
points in the PointArray. Perform another rotation on the temporary points
and pass the result to the next set of points in the PointArray.
Etc........
By starting the PointArray with enough points to do the whole object, you
don't have to re-allocate at every step. Once you have all of the points
transformed, you pass them to a GeometryInfo object to create the final
shape. I used a QuadArray, but if you manage the structure of your
PointArray you can use any of the GeometryArray objects.
I hope that makes sense, it's really fairly simple. If you like, e-mail me
off-list and I'll send you the relevant part of the code.
What I did was a little more than just a "surface of rotation". I used
keyboard input for live steering, rotating about the main axis when going
forward, or creating a turning axis and making 180deg swings left or right
to turn. The result was a "sphere" of ribbon in a polar maze looking thing.
But you should be able to figure it out from the code.
Good Luck
Don
-----Original Message-----
From: Daniel Moscoso [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 6:39 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Generating a 3D object rotating a 2D shape
Hi everybody !!
I'm interested if someone has been implemmenting the following effect: to
create a 2D shape
and rotate / translate it creating a 3D object (for example, like the cone
obtained by the rotation
of a triangle).
Thanks in advanced !!
Dani
===========================================================================
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".
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
===========================================================================
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".
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn
Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
===========================================================================
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".