Jump to content

Get an array of closests primitives from a point


DeBrumaire

Recommended Posts

Hi ! Just like in the title, I need to find all the nearests primitives from a point and put them into an array ! I tried with the "xyzdist" fuction and other techniques but still doesn't work :"/ 

Do you guys have an idea on how to solve this ?

Thank you all !

Link to comment
Share on other sites

  • 1 month later...

FYI the above approach I showed is naive, meant for one-off usage. But if you want max performance, I would recommend creating points to represent primitives and use pcfind instead and using this only include those primitives in the group, which would be much faster.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...