/// <inheritdoc /> protected override void SolveInstance(IGH_DataAccess DA) { Mesh mesh = null; double tol = 0.0; if (!DA.GetData(0, ref mesh)) { return; } if (!DA.GetData(1, ref tol)) { return; } var verts = mesh.Vertices; var points = verts.Select(p => (Vector3d)p).ToArray(); Proximity.Consolidate(points, tol, 3); //Message = (points.Consolidate(tol)) ? "Converged" : "Not converged"; for (int i = 0; i < verts.Count; i++) { verts[i] = (Point3f)points[i]; } DA.SetData(0, new GH_Mesh(mesh)); }