※Attribute Wrangle(Detail)
int pts = npoints(0); vector sum = {0,0,0}; for(int i=0;i<pts;i++){ sum += point(0,"P",i); } v@centroid = sum / pts;