logix1390 Posted June 23, 2019 Share Posted June 23, 2019 hey. I am learning the nearpoints function but for some reason it is giving me an error. I am just trying to store the first value in the array into a my own variable. I am writing this: i@pts[] = nearpoints(1,@P,40); i@First_Pt = @pts[0]; Shouldn't I@First_Pt give me the first value in the "pts" array ? I am not sure why it is giving me an error. Thank you Quote Link to comment Share on other sites More sharing options...
logix1390 Posted June 23, 2019 Author Share Posted June 23, 2019 this is file for anyone that wants to see. nearpoints_question.hip Quote Link to comment Share on other sites More sharing options...
flcc Posted June 24, 2019 Share Posted June 24, 2019 Write it like this : i@[]pts = nearpoints(1,@P,40); don't ask me why. It's an attritute syntax, and a facility I think. But i'm not sure. 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.