THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/12/2012 at 16:43, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi Folks,
I'm getting a points position vector but it's returning the unit in CM's instead of the documents mm. This is causing the print to show an incomplete unit position data. If my document is in mm's for instance, and my point position is x=1000.562, y=1000.778, z=1000.426, the GePrint will only return x=100.056 etc, and is thus leaving off the third decimal place from the original unit type.
What's the work around for this? Example code I'm using below:
LONG a;
a = CP _[a]; // CP is CPolygon, i is polygon number, a is the point I'm getting from number i polygon
GePrint("Position x = " + RealToString[a].x);
Cheers,
WP.