Invalid Mesh fix

Hello everybody,

I need some help.

I have created a low poly mesh with the script and unfortunately I get an invalid mesh which I cannot use for further processing.

Can someone help me how to fix this problem?
Thanks in advance

P.S.: Then I would like to edit the mesh so that I get bars/curves of relatively equal length or edit the script so that I can limit the length. Thank you for any tips.

Low_Poly_McNeel.gh (210.9 KB)

Hi Luca, You can get details of the error with Null Item component

1 Like

Thanks. Do you know how I can solve this problem ?

I think there might be other paths available such as Shrinkwrap, TriRemesh, QuadRemesh that might suffice.

Hopefully some mesh aficionados can chime in as well.

or you can try reduce mesh. in your previous script, the closest point outputs 55 unique vertices. (you can test that by passing it into a set, which removes duplicate]

so that’s 110 faces by eulers formula for triangle meshes (f = 2v)
so you can use that to remesh your original mesh


Low_Poly_McNeel Edited v0.gh (215.9 KB)

if (!Mcheck.IsValid)
{
  Mesh result = Mcheck.DuplicateMesh();
  Mcheck.Vertices.CombineIdentical(true, true);
  Mcheck.Faces.CullDegenerateFaces();
  Mcheck.Vertices.CullUnused();
  Mcheck.RebuildNormals();
}
M = Mcheck;
1 Like

Thanks everybody