Anchor points in Kangaroo solver not functioning properly

I’m trying to create a curved form from a rectangle through Kangaroo in Grasshopper, with the longest sides of the rectangle serving as the anchor points. The intention is for the all the points along the two longest edges to serve as anchor points.

Currently, one of my scripts is working and the structure is completelly anchored along the two edges (see image below). In this script, the mesh has been constructed differently, and the edge length of each individual mesh face is being constrained (see GH script at end of post).

But I wanted to edit the script slightly so that the mesh was constrained by the edge lengths of the entire mesh rather than the individual mesh faces. The mesh was also constructed differently in this script. But once the Kangaroo solver is run, there are gaps in the anchoring points (see below)

Would anyone happen to know what is causing this inconsistency in the anchoring of points?

Here is the GH script:

help!.gh (34.7 KB)

Any advice would be greatly appreciated!

Ideally, the mesh has vertices which are coincident with the anchor points.

If that is not the case, you may increase tolerance in the solver or you have to use other goals to set up connectivities.

In your case it would help if the mesh is divided 50 times instead of 25.

In addition to that, I think you can use the standard solver. Bouncy does not have any benefit here in my opinion.

If you use the entwine component to gather the goals, the output is in the same tree structure and extracting the mesh is easier.

help-divide-50-entwine.gh (43.6 KB)

1 Like

Yes this is the other option to anchor all points.

Thank you so much, this solves the issue of having the little curves along the anchor point line. The only exception is that this solution only seems to function when the curve is divided into exactly 25 points. I’m not sure why this occurs. Would either of you know why the solver behaves like this?

You can divide by as many points as you want but the anchors need to be coincident with mesh vertices. If you want all vertices anchored you need the same number.

That feels very obvious now haha, thank you for clarifying!

1 Like