konstantin magnus 430 Posted September 12, 2017 I am in a detail wrangle and want to read the first component of a point array attribute. Unfortunately neither point() nor attrib() seem to offer this. I couldnt find suitable array functions, either. int npts = npoints(0); i[]@prim_list[npts]; for(int i = 0; i < npts; i++){ @prim_list[i] = point(0, "sourceprim", i).[0]; // try to access first component } Share this post Link to post Share on other sites
Noobini 408 Posted September 12, 2017 apologies, I'm a noob..but should there be a dot there before the square bracket ? Take it out ? Share this post Link to post Share on other sites
konstantin magnus 430 Posted September 12, 2017 tsss, you´re right! Guessing I was just .. errm Share this post Link to post Share on other sites