Jump to content

Using Join and Carve to Create a Continuous Single Curve


noonoo

Recommended Posts

Hello There,

 

I have attached a simplified version of the file I am working on where I have a put a CONVERTLINE node after the main geo and animate this as if the whole geo is a result of a single, continuous curve.

Unfortunately as seen in the simple cube version as well the join node - while to some degree is useful - creates diagonals that don't exist in the original geometry - box -.

What do I need to do so that while it converts the geo into a single continuous curve primitive - which when you carve there is only one start and one end in the overall composition - but doesn't have these extra diagonals?

I highlighted the carve node in red in the file. 

 

Thank you!

 

 

SingleExtrusion.PNG

SingleExtrusion_Test.hipnc

Link to comment
Share on other sites

Hi,

there is an algorithm (from Carl Hierholzer), which only works, if every point has an even count of neighbours. The rough idea behind is to look for circles until all edges have been visited an merge the circle togeter (where they intersect).

Here is a VEXperimental approach (with some workarounds etc.) but only tested for some cases, so there might be bugs.

The problem is to find a good way to store the edge neighbour information (there should be arrays of arrays of ints) and to update them during the loop.

I would like to see, if there is a more straight forward way ...

 

 

hierholzer.hipnc

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...