|
Getting contour data from chart |
Posted by David Hope on Jul-25-2016 23:20 |
|
Can I create a chart, then get the data for the contour lines back out of the chart?
Here is what I'm trying to do....I have a regular set of data in polar coordinates (r, theta) around a lat/lon.
I want to contour the data, then get the contour lines, convert them to X/Y distances, offset them from a lat/lon and draw them on a 3D globe surface.
Can I get the raw contour data out?
Thanks,
David |
Re: Getting contour data from chart |
Posted by Peter Kwan on Jul-26-2016 01:29 |
|
Hi David,
Unluckily, there is no API to obtain the contour line. In fact, internally, ChartDirector computes a contour line as it is plotted, then throw away the result (to save memory) before plotting the next contour line.
For your case, one method is to draw a contour chart, then map the chart onto the 3D surface, using a method called "texture mapping".
Regards
Peter Kwan |
|