Include node in the mesh

Is it possible to include a node in the mesh?
image
I need to export the mesh and the line to another software so it is important that the mesh has a node on this point so that they are connected.
include node to mesh.gh (9.2 KB)

Instead of adding a vertex, you could simply export the mesh and line as two seperate files, for instance two OBJs. When importing them into the other application, they should appear at the same location.

Meshes can include vertices which aren’t used by any faces, so one way is to just add the point to the vertex list.
If you need it actually connected to the mesh with edges though, you can use this script.
It assumes the vertex lies on a face. If you wanted it to handle the cases where the vertex being added sits exactly on an edge or a vertex of the original mesh, a few more lines would need to be added
insertvert.gh (4.4 KB)

Improved it a little to take a list of points as input, and handle the cases where the vertex is on an edge or vertex.
insertvert3.gh (6.7 KB)
insertvert_000

11 Likes

This works perfectly in a normal surface. I tried to apply it in a multi-level mesh and it gives some strange results in some points:


If the levels are not twisted, it works great.
Thank you
Building mesh.3dm (54.5 KB) Building.gh (55.7 KB)

Here we go:
Building_fix.gh (54.8 KB)

I’m curious to know how you made the gif? it is quite amazing.

Thank you. This is perfect.

I use the built in Grasshopper slider animate function (just right click any slider and select Animate).
Then I turn the image files into a gif with VirtualDub.

2 Likes

By Daniel

By Rajaa Issa

Gif generator

1 Like

Spiderman.

I guess spider nets are in supposed to be optimal in some way, question is in which way, but here’s one concept. Let’s see how long before someone makes an elegant Mesh replica of this concept:

https://upload.wikimedia.org/wikipedia/commons/d/d2/Orb_web_building_steps-01.svg

// Rolf

1 Like

Additional thoughts from the peanut gallery - I use Karamba mesher, which takes points and edges, for this purpose