Jump to content
Andrew Kant

Circles between two curves

Recommended Posts

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.  

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

 

 

  • Like 2

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

LinesCircle_01.PNG

Edited by kiryha

Share this post


Link to post
Share on other sites

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 by kiryha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×