Jump to content
segamega

get UV on curve by arclen in VEX

Recommended Posts

Hi,

I can get arclen of the curve by UVs using primarclen()

Can i do opposite thing ?

Share this post


Link to post
Share on other sites

I think using primuvconvert() now that it has been fixed in 16.5.323 you can go one better in that primarclen() only worked on nurbs and bezier curves.

Using primuvconvert() you can get an arclength from u for all curve types including polygonal curves AND you can use it to go in the other direction i.e. get a U value for a given arclength:

//get arclength from u
f@lenC = primuvconvert(@OpInput1, 1, 0, 8)[0];

//get U on curve using arclength
f@u = primuvconvert(@OpInput1, @lenC, 0, 10)[0];

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×