How to approximate a polygon surface mesh with a curve

   1459   1   0
User Avatar
Member
7 posts
Joined: Nov. 2018
Offline
Hi,

I have a bunch of surface polygon meshes like the one on the screenshot where the topology could be much simpler, especially on edges.

How might I get an approximation of the surface mesh by a curve, to get something like on the second screenshot? I'm looking for some node that approximates a polygon surface to a curve with a tolerance parameter for how much of those edge bumps you want to smooth out.

I've been searching the internet and trying with different nodes but didn't find a suitable node or combination of them yet, but can't help but think this is something that must come up pretty often. Is there a node already created for this? If not, how might I approach it otherwise?

Any help really appreciated!

Attachments:
surface.png (465.2 KB)
surface_approximation.png (438.5 KB)

User Avatar
Member
802 posts
Joined: Feb. 2017
Offline
Take a look at this example. maybe this can help you. You need Sidefx Labs installed, as I make use of the node edgegroup_to_curve

Cheers
CYTE

Attachments:
EdgeFromPoly.hip (136.7 KB)

  • Quick Links