One approach would be to generate one TriangleFanArray per pie slice.
For example, you could write a subclass extending BranchGroup whose
constructor accepted an ordered set of SliceSpecifications, and a radius. Each
SliceSpecification could contain, among other data, a real number representing
its proportion of the pie. The constructor could iterate through the SliceSpecs
to sum the proportions; and again to build the TriangleFanArrays.
This approach produces a 2D pie chart. A third dimension could easily be
added by a Cylinder of the same radius placed underneath the pie chart. Note,
however, that a third dimension would be purely decorative -- it would contain
no useful information.
-----Original Message-----
From: Marc Biggs <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, August 23, 2000 11:04 AM
Subject: [JAVA3D] Creating a pie chart class
>Does anyone have any ideas on how a pie chart could be created in Java 3D
>Any ideas are welcomed
>Many thanks for any help you may give
===========================================================================
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".