Grasshopper - Surface to mesh

Hello!

I’m creating roads in grasshopper, then the mesh roads are sent to Sketchup for further modeling.

The problem I ran into is that mesh is not being created the way I wanted.

This is the surfaces I created. So the next step is to make them more predictable before converting to mesh. I divide curves and make them polycurves.

and finally I try to make mesh from Brep, but the result goes something like this:

Most of it is fine, but I need result to be like this:

The best result was made by node Polyline to Mesh from Pufferfish:

but it doesn’t include holes like surfaces and it makes overlapped meshes on top of eachother.

So the question is - how to do that? I’ve searched surface to mesh but didn’t find anything useful. In theory that looks kinda like dealunay by contours? But never seen this implemented in grasshopper.

surface to mesh.gh (83.3 KB)

Alternative solution I see is chipping mesh after Polyline to Mesh or to use delauney with culling unwanted faces outsude contour, but I prefer to avoid this if possible.

Try quad remesh, it gives you better mesh but adjacent meshes have gaps between them when zoomed in.


Yeah, sadly they dont seem to connect anymore, and the ammount of faces is crutial, in script I tried to divide curves by 6 meters or so to create faces, all because of the further workflow in Sketchup. (Should have pointed that out in post, sry)

no grasshopper needed I think.

you join the breps in rhino, mesh them (custom settings). I just restricted max edge length to 2000mm in this image. you can tweak angle etc..

explode the mesh. like this you get matching edges and decent mesh.

roadmeshes.3dm (92.2 KB)

Thank you, but this is not exactly what I want.
The idea is not to add vertices inside geometry, only to use the ones on the borders (verticies of polylines). And all the roads are built via grasshopper algorithms so the rhino functions wont do

This is somethig I came up with. Somewhat acceptable for now (it has weird connection between few meshes, but I can live with that), but if someone has any ideas I’ll be glad to hear

surface to mesh_v1.gh (135.5 KB)

Shoutout to guys who shared this c# script somewhere on forum, cant find post where I found it

After a little bit of tuning and a few words with GPT I finally got the best wanted result!

surface to mesh_v2.gh (132.3 KB)