
In an Attribute Wrangle:
int p0 = addpoint(0, set(0,0,0));
int p1 = addpoint(0, set(1,0,0));
int p2 = addpoint(0, set(1,1,0));
vector pos = point(geoself(), "P", p2);
printf("Position of p2 is: %g\n", pos); // This prints Position of p2 is: {0,0,0} which is wrong
I would like to access the coordinates of p2 and print them out. I'm using:
vector pos = point(geoself(), "P", p2);
printf("Position of p2 is: %g\n", pos);
but instead of printing {1,1,0} it prints {0,0,0} which is wrong.
How could I print or access the coordinates correctly?
Thanks in advance

