Hi Well, there is NO ARC API in Java3D. If you are planning to write one, here are some points to note:
There are many different ways in which an arc can be constructed depending upon the nature of inpute parameters that you have, such as: radius, axis of rotation, start and end points, arc angle, intersection of plane and surface, or the toughest one which is surface-surface intersection. Essentially, an arc in 2D is fundamentally different from that in 3D in that in 2D (i.e. in x-y plane) you have an implicit axis of rotation which is the z-axis. In 3D, to construct an arc you will have to define the plane ( for example, by specifying the plane normal ) on which the arc would lie. A typical set of input parameters in 3D would be: center of rotation, axis of rotation, radius of arc. If you are very conversant with the Arc2D API then an easier approach would be to construct the arc in 2D (in Java3D) and then rotate it to the location and orientation of your interest. Regards Raj Vaidya >On Sun, 23 Dec 2001 15:26:26 -0800, Enrique Dumas <[EMAIL PROTECTED]> wrote: >Well, I want to draw in 3D an arc as in 2D with >perspective > >For example, in 2D, an avaible constructor is : >public Arc2D.Float(float x, > float y, > float w, > float h, > float start, > float extent, > int type) > >" >Constructs a new arc, initialized to the specified >location, size, angular extents, and closure type. >Parameters: >x, y - The coordinates of the upper left corner of the >arc. (Specified in float precision.) >" > >I would like the same thing but with z coordinate. > >So If I can't do this thing, is it possible to draw 2d >arcs ? >----------------------------------------------------- > >--- "Gary L. Graf" <[EMAIL PROTECTED]> wrote: >> Hi, >> I'm not sure what you want. An arc is really a >> two dimensional concept. If you are working in 3D >> do >> you want sections of a sphere, cone or cylinder (all >> Java3D primitives) or some form of oddly curved >> shape >> in 3D fabricated out of a mesh? - Gary Graf >> >> SUBSCRIBE JAVA3D-INTEREST Anonymous wrote: >> >> > Hi, >> > >> > I'd like to draw 3d arcs with java 3D, I looked >> old posts on this forum but I did not found an >> answer... >> > >> > Is it possible and how can I do ? >> > >> > Thanks >> > >> > >> > ========================================================================== >> > 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". > > >__________________________________________________ >Do You Yahoo!? >Send your FREE holiday greetings online! >http://greetings.yahoo.com > > ========================================================================== >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".
