SteveNi Posted September 18, 2016 Share Posted September 18, 2016 Hi So basically I have some points and a "source" point, I want to find the closest points to the source point, so I tried to use the nearpoint() and nearpoints() functions but when I try to print out the results I get no points... http://prntscr.com/cjgofb Is the syntax wrong or something? I attached a scene for reference. Thanks. test_findPoints.hipnc Quote Link to comment Share on other sites More sharing options...
charly Posted September 18, 2016 Share Posted September 18, 2016 Hi, SteveNi I don't know if it's the best solution but it work like that. vector pPos = attrib(1, "point", "P", 0); int maxpoints = 1; float dist = 0.2; int pnt_near[] = nearpoints(0, pPos,dist, maxpoints); printf("%s \n", pnt_near); Charles 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.