Jump to content

# Circles between two curves

## Recommended Posts

Posted (edited)

There are two curves of double curvature. How to place circles between them?

Edited by Andrew Kant

#### Share this post

##### Share on other sites

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

##### 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

##### 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.

• 2

#### Share this 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

##### Share on other sites
Posted (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.

Edited by kiryha

#### Share this post

##### Share on other sites
Posted (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.

Edited by Andrew Kant

#### Share this post

##### Share on other sites

Here is some method: fit_circles_to_curves.v4.hipnc

• 6

#### Share this post

##### Share on other sites
Posted (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 by kiryha

#### Share this post

##### Share on other sites

jkunz07this 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.

#### Share this post

##### Share on other sites

Sorry it wasn't acceptable to you!

#### Share this post

##### Share on other sites

jkunz07I apologize for my bad English.

#### Share this post

##### Share on other sites

Here in this video the guy helped me with my task. Maybe it's not quite right, but it solves my problem.

• 2

#### Share this post

##### Share on other sites

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.

• 1

#### Share this post

##### Share on other sites

Now with circles

It's not 100% exact but it's as close as I could get.

• 2

## 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

×
• Donations

• Leaderboard