konstantin magnus Posted September 12, 2017 Share 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 } Quote Link to comment Share on other sites More sharing options...
Noobini Posted September 12, 2017 Share Posted September 12, 2017 apologies, I'm a noob..but should there be a dot there before the square bracket ? Take it out ? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 12, 2017 Author Share Posted September 12, 2017 tsss, you´re right! Guessing I was just .. errm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.