Andrew Kant Posted March 6, 2018 Share Posted March 6, 2018 (edited) There are two curves of double curvature. How to place circles between them? Edited March 6, 2018 by Andrew Kant Quote Link to comment Share on other sites More sharing options...
benne5 Posted March 6, 2018 Share Posted March 6, 2018 Copy stamp circles along one of the curves. You can control the size of the circles using the stamp function in the scale parameters of your circles or a transform node. Quote Link to comment Share on other sites More sharing options...
Andrew Kant Posted March 7, 2018 Author Share Posted March 7, 2018 I do not really understand how this way radii of circles will be built in between two curves. Could you show an example of an algorithm? Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted March 7, 2018 Share Posted March 7, 2018 how about this: -resample the curves to have equal amount of points. - measure the distance between the points with the same point number, this will give you the diameter for each circle. - you can now place a point using the radius and instance a circle onto this point. 2 Quote Link to comment Share on other sites More sharing options...
Andrew Kant Posted March 7, 2018 Author Share Posted March 7, 2018 2 hours ago, Jesper Rahlff said: how about this: -resample the curves to have equal amount of points. - measure the distance between the points with the same point number, this will give you the diameter for each circle. - you can now place a point using the radius and instance a circle onto this point. If I understand correctly, in your case the circles will intersect. I need that the circles do not intersect, but only touch each other. I see the solution of this problem to construct a circle by three tangents to curves. But what algorithm I should not know. Quote Link to comment Share on other sites More sharing options...
kiryha Posted March 9, 2018 Share Posted March 9, 2018 (edited) Great, I am stuck almost at the very beginning! Cant get per point distance(parallel processing?), got the value from the last iteration in the loop for each point. Also, I took a closer look at source image and notice that circles are ideally fit between lines but they are deformed (and become not quite circles). I guess first the straight parallel lines with circles between were created and deformed after. Much more elegant way than trying to fit shapes between other shapes. circlesBetweenLines_002.hipnc Edited March 9, 2018 by kiryha Quote Link to comment Share on other sites More sharing options...
Andrew Kant Posted March 9, 2018 Author Share Posted March 9, 2018 (edited) No, circles do not deform. This is such an angle, because the curves of double curvature are located in 3D, and not in the plane. Here is the solution of this problem in Grasshopper. Maybe it will help to realize this in Houdini. http://www.grasshopper3d.com/forum/topics/cycle-operations-in-gh Edited March 9, 2018 by Andrew Kant Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted March 9, 2018 Share Posted March 9, 2018 Here is some method: fit_circles_to_curves.v4.hipnc 7 Quote Link to comment Share on other sites More sharing options...
kiryha Posted March 9, 2018 Share Posted March 9, 2018 (edited) Ah, I see! That's a super cool setup, definitely, it could be done in Houdini (but I am not sure if I will be able to do this). Anyway, my question still open as well Super cool setup as well, John! Just saw it after publishing the message. Edited March 9, 2018 by kiryha Quote Link to comment Share on other sites More sharing options...
Andrew Kant Posted March 9, 2018 Author Share Posted March 9, 2018 jkunz07, this does not solve my problem. Circles should be perfect. It may be easier if instead of circles there are spheres. This will also be acceptable for me. Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted March 9, 2018 Share Posted March 9, 2018 Sorry it wasn't acceptable to you! Quote Link to comment Share on other sites More sharing options...
Andrew Kant Posted March 9, 2018 Author Share Posted March 9, 2018 jkunz07, I apologize for my bad English. Quote Link to comment Share on other sites More sharing options...
Andrew Kant Posted March 18, 2018 Author Share Posted March 18, 2018 Here in this video the guy helped me with my task. Maybe it's not quite right, but it solves my problem. 2 Quote Link to comment Share on other sites More sharing options...
PixelNinja Posted March 20, 2018 Share Posted March 20, 2018 I had a quick go. If you calculate the orientation correctly then you should be able to instance circles instead of spheres. If I get a chance I'll have a look at that tonight. crv_spheres_01.hiplc 1 Quote Link to comment Share on other sites More sharing options...
PixelNinja Posted March 20, 2018 Share Posted March 20, 2018 Now with circles It's not 100% exact but it's as close as I could get. crv_spheres_02.hiplc 2 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.