There is 1 unconnected node in the model

Hi,

I’ve tried the simplest method to create a shell element with Karamba api. But I encounter the error of “There is 1 unconnected node in the model”. Is there a way to solve it in the code? Thank you in advance.

Tommy

Hi @Tommy_Feng,
the reason for the error is that BuilderShell assumes that the supplied mesh contains triangular faces only. This would work (see also the attached definition: 250320_ShellScripted.gh (25.5 KB)):

Point3 pt0 = new Point3(0, 0, 0);
Point3 pt1 = new Point3(1, 0, 0);
Point3 pt2 = new Point3(1, 0.5, 0);
Point3 pt3 = new Point3(0, 0.5, 0);

Mesh3 mesh = new Mesh3();
mesh.AddVertex(pt0);
mesh.AddVertex(pt1);
mesh.AddVertex(pt2);
mesh.AddVertex(pt3);

mesh.AddFace(0, 1, 2);
mesh.AddFace(3, 0, 2);

var shell = new Karamba.Elements.BuilderShell(mesh);
Elem = new Karamba.GHopper.Elements.GH_Element(shell);

Sorry for the inconvenience. I will add an exception or an automatic conversion to triangles in the next service release of Karamba3D. I added an issue on Github (see here)
– Clemens

Awesome! Thank you for the clarification, Clemens.