Generate curve from geometry

   6590   5   0
User Avatar
Member
8 posts
Joined: Aug. 2020
Offline
Is there a tried and true method for doing this? Feels like this might be quite common.

I have a geometry like this example and am trying to generate a curve that sits in the middle of its cap and follows the shape around the curve - so not a simple extraction from edge.

Perhaps I need to calculate diameter and place a point in the middle or some such?



Any tips!?
User Avatar
Member
474 posts
Joined: Feb. 2012
Offline
Try the Labs straight skeleton 3d
User Avatar
Member
5100 posts
Joined: Feb. 2012
Offline
This might give you some ideas:

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
9384 posts
Joined: July 2007
Offline
It depends on the topology, the solution may be trivial edge loop based, uv based or more convoluted like straight skeleton

In the case from your picture I assume it should be pretty straightforward as the geo seems clean, so you can easily get centroid of each loop and connect them to a curve

Since there was no file attached to your post, hopefully description is enough
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
173 posts
Joined: Aug. 2017
Offline
maybe it Helps!

Attachments:
CurveC.hiplc (291.9 KB)

Conservation of Momentum
User Avatar
Member
8 posts
Joined: Aug. 2020
Offline
Thanks all, some interesting approaches and learned some stuff! I ended up following along this which seemed to work well: https://www.youtube.com/watch?v=F86-TDRzjnc [www.youtube.com]


  • Quick Links