curves twisted along another one

   4546   5   0
User Avatar
Member
383 posts
Joined:
Offline
Hello,

I have some curves create from a trail sop.
I made another one which represents the average position of the first trail curves.

My problem is I need to twist the trail along the average curve but I have no clue how to do that.
I am far to be a math guru and I see matrices coming …
I add a little hip with 2 curve and some mess.

Thanks for your help,

Vincent

Attachments:
twistIssue.hip (172.5 KB)

http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
10 posts
Joined: 3月 2014
Offline
Hopefully that will work for you - no need to mess with matrices and cross products in this case. I simply move the point to the position+normal or position+bitangent of the other curve.
You need 4 points - one on each side to get a smooth looking coil so that's how many I've added.

The number of coils depends on the number of points on the B curve.

How far the coils go onto the second curve depends on the number of points on curve A. Ideally, you'd want both curves to match. It's kind of … inconvenient I guess but I can't think of a setup where you'd be prohibited from simply resampling to create the coils.

Hope that helps. Cheers

edit; grrrrh, I can't delete the original file that I accidentally uploaded, download the one called twistCrv
Edited by Georgie - 2016年8月18日 09:21:12

Attachments:
twistIssue.hip (172.5 KB)
twistCrv.hipnc (120.2 KB)

User Avatar
Member
383 posts
Joined:
Offline
Thanks for your reply.

I watched your hip file but its not what I have in mind.
I made a new hip file which (I hope)will allows you to understand better what i try to achieve.
I copy some circles with the point of the green curve, scaled by the distance between the points of this curve and the points of the red one.
I would like the red points to rotate on the axis create by the N attribute of the matching green points ( the tangents of the green curve ).

++

Attachments:
twistShematic.hipnc (159.9 KB)
curves.png (356.2 KB)

http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
280 posts
Joined:
Offline
hows this?

Attachments:
twistShematicMod.hipnc (193.2 KB)

User Avatar
Member
383 posts
Joined:
Offline
that's it !

many thanks !
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
1 posts
Joined: 5月 2006
Offline
George I downloaded your file its pretty cool. I am actually working on something similar. Btw I am a beginner. Just starting learning Houdini few months ago.
I have a question about the “orientation” How can we re orient the beginning of the twist ?
Roshan Ara
  • Quick Links