08-24-2009 03:08 PM
I found the location for changing the 3D graph properties to accept spherical or cylindrial coordinates, but I can't find any documentation on how to enter the data. Is this graph call correct, or do I need a different function? I attached the wiki definations for the 2 coordinate systems.
Cylindrical
CW3DGraphLib__DCWGraph3DPlot3DCurve (graphHandle, NULL, var_RHO, var_PHI, var_Z, CA_DEFAULT_VAL);
http://en.wikipedia.org/wiki/Cylindrical_coordinate_system
Spherical
CW3DGraphLib__DCWGraph3DPlot3DCurve (graphHandle, NULL, var_RHO, var_THETA, var_PHI, CA_DEFAULT_VAL);
http://en.wikipedia.org/wiki/Spherical_coordinate_system
Thanks
Ryan
Solved! Go to Solution.
08-25-2009 05:41 PM
Hi ,
Please take a look at this KnowledgeBase: 3D Curve Graph and Cylindrical Coordinates
08-26-2009 07:56 AM
I found the solution of "The 3D Curve Graph uses the mapping of (theta, z, r) into (x, y, z)", but how do the spherical coordiates map. I don't want assume anything.
Thanks
Ryan
08-26-2009 08:29 AM
Also, are the values for phi and theta in degrees or radians?
Thanks
Ryan
08-26-2009 10:31 AM
The correct spherical format is
CW3DGraphLib__DCWGraph3DPlot3DCurve (threeDgraphHandle, NULL, var_theta, var_phi, var_mag, CA_DEFAULT_VAL);
where phi and theta are in radians (not degrees)