voxpad Posted July 1, 2013 Share Posted July 1, 2013 Hi there, Was wondering how I could get the following outcome. If I have a curve which looks like https://picasaweb.go...feat=directlink I would like to resample each of the straight lined segments in following manner, If segment 0-1 is 8 units long, then it should have 9 points placed at intervals of 1 unit, starting at position 0. https://picasaweb.go...feat=directlink In case, If the segment was say 8.4(float value) units long, then it would still have 9 points placed at intervals of 1 unit, but starting at position 0.2 so that it would look like, https://picasaweb.go...feat=directlink In case of the curved segment, from 4-11, It should consider all the segments between 4-11, as one single segment and resample it in the above manner. This is beacuse I want to preserve the shape of the curve and at the same time distribute points on the curve at intervals of 1 unit distance. So that geometry of 1 unit size can be instanced on the curve later on. Thank you. Quote Link to comment Share on other sites More sharing options...
gaurav Posted July 2, 2013 Share Posted July 2, 2013 Hi vivek, Have you tried polyspline sop ? http://www.sidefx.com/docs/houdini12.5/nodes/sop/polyspline Keep spline type> linear and division method> even and specify divisions. Cheers! 1 Quote Link to comment Share on other sites More sharing options...
gaurav Posted July 2, 2013 Share Posted July 2, 2013 You can also append a carve sop before the polyspline and cut by giving starting /ending position to adjust the resampled curve. 1 Quote Link to comment Share on other sites More sharing options...
voxpad Posted July 3, 2013 Author Share Posted July 3, 2013 Hi Gaurav, Both polyspline and carve sop are just what I needed. They work like a charm. Thank you 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.