kubabuk Posted February 24, 2009 Share Posted February 24, 2009 Hi all, I'm having problems figuring out how to put that in vops, any help will be very appreciated. Thanks, kuba Quote Link to comment Share on other sites More sharing options...
mic Posted February 24, 2009 Share Posted February 24, 2009 Hi all,I'm having problems figuring out how to put that in vops, any help will be very appreciated. Thanks, kuba Hi, Kuba! don't know what you exactly mean, but.. calculating center of the object vop. sop center() { vector center = {0, 0, 0}; vector q = {0, 0, 0}; int i = 0; for (i = 0; i < Npt; i ++) { import ("P", q, 0, i); center += q/Npt; } P = center; } Quote Link to comment Share on other sites More sharing options...
kubabuk Posted February 25, 2009 Author Share Posted February 25, 2009 Thanks mic, The aim is to measure on the line distance between consecutive points and then sum up that values from currently processed point to point 0. This requires to somehow accumulate measured distance. I'm just wondering maybe I'm in a wrong scripting context, since VEX has a SIMD architecture.... kuba Quote Link to comment Share on other sites More sharing options...
petz Posted February 25, 2009 Share Posted February 25, 2009 example file is attached. HTH, petz accum_line.hipnc Quote Link to comment Share on other sites More sharing options...
kubabuk Posted February 25, 2009 Author Share Posted February 25, 2009 cool, thanks petz 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.