How to group lines to form mesh faces? - MESH FROM LINES

I need to create meshes with holes.

With the boundary surface component this is easy but it uses a lot of computational memory and I need to do this with many rectangles and then transform them into meshes.

I need a definition that creates meshes with holes from an external rectangle and internal ones that form the holes. I used the delaunay edges component to create the lines that will form the meshes but I couldn’t find a way to duplicate these lines and group them in 3 lines to form a triangle that will be used to form a mesh.

Could someone help me create meshes with holes using less computational memory?

weavebird meshes from lines.gh (13.1 KB)

How about this way?


weavebird meshes from lines_re.gh (17.8 KB)

1 Like

cool! Thank you @HS_Kim !
but dont work if i use more rectangles
Do you have another approach?

Does this help?


weavebird meshes from lines_reV2.gh (10.4 KB)
BTW, if you enable the profiler widget, you can see that actuallyBoundary Surfaceis slightly faster in both cases… :face_with_raised_eyebrow: so, what is worth not using it?

1 Like

My purpose is to test with irregular figures, I am doing a test with these rectangles first. But in another model I’m working on, creating boundaries ends up taking a lot of computational time. Unfortunately I cannot share this model here, but soon I will do some tests and show it here.

For now we find that with regular models the best technique is boundary, I will evaluate this with irregular figures.

Still I need to test with that initial logic of creating meshes with 3 lines that form a triangle and with the weavebird component.

Do you have any idea how we can group those lines to form a triangle and thus use the “meshes from lines”?

weavebird5

I’m making a file for the shapediver and I need the least computational time to work better when interacting with the user on the internet.

I did this test by generating random rectangular figures. In fact, with boundaries, it uses less time, but I gradually try to create alternative routes. In this example I will use more mathematical logic to evaluate the centers within the curve through a domain analysis.

weavebird meshes from lines_reV2.gh (24.0 KB)

My job is pretty similar to the one you did here, but I can only use 10s of computational memory :sweat_smile:. The output needs to be in meshes.

https://www.grasshopper3d.com/profiles/blogs/randomcrossingpatternpanel

Related: C# Create a mesh with a hole inside

2 Likes