At 08:03 AM 9/24/99 +0800, you wrote:
>Dennis Goetz wrote:
> > I would like to be able to draw an arc between two given points and was
> > just wondering if anyone had suggestions on how I could accomplish this, or
> > if someone already had a class to do this that they would be willing to
> share?
>
>You might want to look at the java.awt.geom package. There's a bunch of
>iterators in there that allow you to build arcs, curves, lines etc. I
>was going to post a chunk of source from they way we've implemented it,
>but its a bit two convoluted to just strip out the essentials. Bascially
>the tactic is to create a path iterator for an ellipse with the
>appropriate flatness. Then take the Point[]s from this and create an
>indexed line array from the point information. This will give you a 2D
>ellipse. If you need 3D, then you're on your own :)
Thanks for the pointer, but I was actually hoping to make a cylindrical arc
in 3D.. I could probably also just use a rectangular based arc (doesn't
have to be perfectly smooth)...
Just to explain some, the main reason I want arcs is to be able to connect
multiple points on a flat surface and still be able to clearly tell where
everything is coming from/going to. Arcs are just the first thing that
came to mind.. any suggestions are appreciated.
Thanks,
Dennis
===========================================================================
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".