Jump to content
Shamanek

Fuse edge to generate center line

Recommended Posts

Hi guys,

does anyone know if in Houdini is an option to fuse points in poly extrude to generate center line as I show in the gif below? Or how could we generate a center line in such a geometry?

I need to do it to generate neon light in the center of the letter.

 

 

 

center_line.jpg

inner_line_merge.gif

Share this post


Link to post
Share on other sites

No.

The problem is called Straight Skeleton. It is a well studied comptl geo problem. There is a robust implementation in CGAL, but it's most likely not an acceptable answer.

It's a hard problem that you can't just solve with a few chained SOPs sadly.

The closest you will have in Houdini is this: do a polyexpand SOP with those parameters: Output: Offset Surfaces

Offset: some large number greater that the dimensions of your object.

After that, finding the actual straight skeleton is not trivial either, because it is not a curve, but a tree. It does not exist as an object in Houdini.

You can have a look at the vertex attribute EdgeDist, in some cases it may help to delete some points to help you build the skeleton.

skeleton.png

Share this post


Link to post
Share on other sites

@Shamanek xyz distanc find gradient and use this you have endless posybility..Just Fine adjust
plus this


image.thumb.png.99c91e435f7b78a70d682f0fb40fb7b5.png
image.thumb.png.bed9f3156b9d57087150cf4069fe360c.png

Edited by Librarian

Share this post


Link to post
Share on other sites

Great guys, thanks a lot for the awesome tips. I used the combination of them and it works fine for now. :)

  • Like 1

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

×