----- Original Message ----- From: "Joachim Diepstraten" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 9:52 AM Subject: Re: [JAVA3D] arc3d
> Hi Tim > > > could someone point me in the right direction for going about designing an arc3d- similar to the arc2d of the awt.geom package? > > Well the easiest way would be to calculate the 2d outline of your arc > and simply extrude it into the z-axis. That should be rather simple. You can > do this by sampling either with using sin/cos or r^2 = > sqrt(x^2+y^2) and limit the area to the opening angle of the arc. > Joachim accidentally left out the part about reading up on the Geometry Node Component. You'll probably want to build your geometry piece by piece, probably using TriangleFanArrays for the top and bottom and maybe a single matching TriangleStripArray that wraps around the sides and outer edge of the pie slice. It sounds worse than it is, and the docs make it sound even worse than that. The process isn't too bad once you figure out how it works. To save yourself another couple of posts, make sure you understand how the normals are calculated and how the renderer interprets them. Save changing the geometry on the fly on the live scene graph for later. Post your source when you get done and become rich and famous. hth, Fred Klingener Brock Engineering =========================================================================== 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".
