Bernard Posted March 11, 2007 Share Posted March 11, 2007 Hello, I got a nurbs curve (converted to polygon). I want the normals to flow along the curve. How can I do this ? thanks, bern Quote Link to comment Share on other sites More sharing options...
edward Posted March 12, 2007 Share Posted March 12, 2007 Not exactly sure what you mean, but have you tried the Tangent HDA on the Exchange? http://www.sidefx.com/exchange/info.php?fi...mp;versionid=90 Quote Link to comment Share on other sites More sharing options...
Jason Posted March 12, 2007 Share Posted March 12, 2007 Not exactly sure what you mean, but have you tried the Tangent HDA on the Exchange?http://www.sidefx.com/exchange/info.php?fi...mp;versionid=90 Ah yes, I knew I'd seen one somewhere. (We call ours "FlowNormals" in-house) Quote Link to comment Share on other sites More sharing options...
stu Posted March 12, 2007 Share Posted March 12, 2007 In a pinch you can always extrude the curve, compute the normals, and then delete the extraneous points. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted March 12, 2007 Share Posted March 12, 2007 There is also an example file for the Point SOP that does this by having the point normal look at the next point along the curve. Its pretty straight forward, so I would check that out as well. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 12, 2007 Share Posted March 12, 2007 another way is to apply row and column uv coordinates and then use this expression in a point sop add normals parameter primduv("../mycurve",0,"P",0,$MAPU,0,1,0) primduv("../mycurve",0,"P",1,$MAPU,0,1,0) primduv("../mycurve",0,"P",2,$MAPU,0,1,0) Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted March 12, 2007 Share Posted March 12, 2007 another way is to apply row and column uv coordinates and then use this expression in a point sop add normals parameterprimduv("../mycurve",0,"P",0,$MAPU,0,1,0) primduv("../mycurve",0,"P",1,$MAPU,0,1,0) primduv("../mycurve",0,"P",2,$MAPU,0,1,0) Is there an equivalent of primduv() in vex? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 13, 2007 Share Posted March 13, 2007 I doubt it, since vex only deals with one point at a time. But why not create the attribute outside of vex and then just import it afterwards? Quote Link to comment Share on other sites More sharing options...
DASD Posted March 16, 2020 Share Posted March 16, 2020 I think it's in since H16 or so: https://www.sidefx.com/docs/houdini/vex/functions/primduv.html Is it possible to use this to get a direction along the curvature of a polygonal object and if so, can someone give an example (vex) code? Or am I thinking about this wrong? Quote Link to comment Share on other sites More sharing options...
animatrix Posted March 16, 2020 Share Posted March 16, 2020 Hi you can use the slideframe function: https://www.sidefx.com/docs/houdini/vex/functions/slideframe.html 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.