Jump to content

Pointdist In Vops


Recommended Posts

Hello,

Is there an equivelent to the pointdist() function in VOPS? Im am extracting the uv coords from a piece of geo to about 100000 pts. It takes quite a long time to calculate using the pointdist() expression and am trying to find a way to make this run a bit more efficiently.

Thanks

Link to comment
Share on other sites

hi SpencerL,

as far as I know there isn't such a func() in VEX nor VOP, but this may solve your problem:

http://forums.odforce.net/index.php?s=&amp...ost&p=41746

This is point cloud method in vex sop that finds the nearest point from pt. (see the second piece of code, first is a normal loop). Simply and very fast!

hope this help,

sy.

Edited by SYmek
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...