sanostol Posted May 20, 2008 Share Posted May 20, 2008 Hi, is there a way to get a curve in vex. for example I want to deform a geometry with a curve and need the curve for this. so when I evaluate the curve at a specified u value i want to get the position at this point is it possible? martin Quote Link to comment Share on other sites More sharing options...
rdg Posted May 20, 2008 Share Posted May 20, 2008 Hi,is there a way to get a curve in vex. for example I want to deform a geometry with a curve and need the curve for this. so when I evaluate the curve at a specified u value i want to get the position at this point is it possible? martin You maybe can use a carve to get the desired u in worldspace and feed this into VEX. Just guessing, though. Cheers, Georg Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 20, 2008 Share Posted May 20, 2008 I think this is not very well suited to vex. You can access the points and work out an interpolated position, either find the closest 2 using a point cloud or use the connectivity to find the neighbours. But actually just looking up the position using the u value I don't believe is possible. Maybe in a python sop? Quote Link to comment Share on other sites More sharing options...
symek Posted May 21, 2008 Share Posted May 21, 2008 (edited) I think this is not very well suited to vex. You can access the points and work out an interpolated position, either find the closest 2 using a point cloud or use the connectivity to find the neighbours. But actually just looking up the position using the u value I don't believe is possible. Maybe in a python sop? Python + hscript expression unfortunately what makas this thing slow... What I was thinking recently is, since these are parametric curves..., so with a help of arrays one could represent a curve in vex. All we need is a proper bezier() call for example... Might be interesting to implement it by someone... Edited May 21, 2008 by SYmek Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted May 21, 2008 Share Posted May 21, 2008 You could use a resample-SOP before your VEX-Sop and then use either nearest neighbor sampling or linear interpolation for your curve. By cranking up the samples in the resample-SOP you can control the accuracy for your curve. I've attached an example scene, where a VOP-Sop places a point along a curve. Hope it helps ;-) curveToVop.hipnc Quote Link to comment Share on other sites More sharing options...
sanostol Posted May 24, 2008 Author Share Posted May 24, 2008 thanks a lot guys. @FrankFirsching: Sounds like a proper solution. thanks. Will look at it as soon as I'm back at home Martin Quote Link to comment Share on other sites More sharing options...
edward Posted May 25, 2008 Share Posted May 25, 2008 Perhaps I'm missing something. WireCapture and/or WireDeform SOPs? 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.