ydyd Posted March 3, 2022 Share Posted March 3, 2022 Hi everyone! I'm new to Houdini and I'm having an issue I can't solve. I thought it would be easy, but after researching, I can't find a solution and would appreciate very much any help! I have two points, each one with a vector (transferring the normals for a surface in this case) and I want to connect them by a curve the follows those vectors. I guess this should be a Bezier curve. The idea would be that if the length of the vectors increase or decrease, then the curve would be adjusted. Hope I can get some help. Thank you! Quote Link to comment Share on other sites More sharing options...
Fenolis Posted March 4, 2022 Share Posted March 4, 2022 (edited) Polybridge SOP has a similar function but it works for polygon faces/edge groups. One way you could achieve this effect is to use Add SOP to create a line between the points, resampling the line, and then using an attribute at each endpoint to nudge the intermediate points towards the vector directions. Attribute Blur/Smooth may also be useful here. curve_from_point_vectors.hiplc Edited March 4, 2022 by Fenolis Attached sample file. 2 Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted March 4, 2022 Share Posted March 4, 2022 Hi, there is also a VEX function called "spline", which can evaluate bsplines (equivalent to cubic bezier). Once you have the attributes on the points (surface position/normal), you can build the curve from these attributes. The spline function is quite similar to the resample subdivision result. Another VEX function which is quite helpful here to get the attributes from the surface is xyzdist(). curve_between_surfaces.hipnc 2 Quote Link to comment Share on other sites More sharing options...
ydyd Posted March 4, 2022 Author Share Posted March 4, 2022 @Aizatulin and @Fenolis. Thank you so much for this, great to see both approaches to the problem. Both are great solutions and solved the issue!! Really great for learning, and I definitely have to get into VEX Thank you so much both Quote Link to comment Share on other sites More sharing options...
animatrix Posted March 5, 2022 Share Posted March 5, 2022 There are also some interesting methods here: 1 Quote Link to comment Share on other sites More sharing options...
eikonoklastes Posted March 17, 2022 Share Posted March 17, 2022 (edited) Well, this was a fun exercise: https://imgur.com/a/dMGtUj5 Manual Bezier Curve.hiplc Edited March 17, 2022 by eikonoklastes 2 Quote Link to comment Share on other sites More sharing options...
ydyd Posted March 17, 2022 Author Share Posted March 17, 2022 thank you @eikonoklastes! This is great! 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.