SpencerL Posted January 7, 2008 Share Posted January 7, 2008 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 Quote Link to comment Share on other sites More sharing options...
symek Posted January 8, 2008 Share Posted January 8, 2008 (edited) 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=&...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 January 8, 2008 by SYmek Quote Link to comment Share on other sites More sharing options...
SpencerL Posted January 8, 2008 Author Share Posted January 8, 2008 Thanks SYmek, its loads faster now. 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.