Anchor Points Not Holding Mesh

I have a script with anchor points that are supposed to hold the mesh in place as the mesh is acted upon, but the mesh will not stay in place at those points that are defined from a Brep deconstruct. So the points that are to be the anchor points are directly linked from the mesh. Please help. I have connected a panel that shows that the points have been defined. I am using Rhino 6 on a Macbook Pro. Kangaroo2.

Judging from your screenshot, I believe that you need to provide the relevant mesh vertices as anchor points, not the four vertices of the surface.
In order to do that, you could start from the four surface vertices and look for their closest points among the mesh vertices, and provide those four to the Anchor component instead. If you want to have static anchors that stay in place, you don’t need to provide target points. However, if you use targets make sure that they match the anchor points in number and order.

With the standard Kangaroo 2 solver, you should also use Entwine, not Merge. You input the Show component to the first input and all other constraints the second, effectively flattening them.

2 Likes

Thank you so much. After baking the mesh, establishing points “On mesh,” and using the Entwine it was a success. Thank you again and have a wonderful day!

1 Like

Thank you so much. After baking the mesh, establishing points “On mesh,” and using the Entwine it was a success. Thank you again and have a wonderful day!

You didn’t have to bake it and do it all manually. If you can post an example file I can show you how to do it all in Grasshopper.

Here is the grasshopper file: Kangaroo2Example.gh (11.8 KB)

You need to internalize your Rhino geometry or provide a Rhino file with the GH file. :slight_smile:

My bad. Here we are: Internalized Kangaroo2.gh (13.2 KB)

Here you go:

Internalized Kangaroo 3.gh (11.3 KB)

Last question if you may: What are the components “CP” that is connected to DeBrep, “BANG!”, and “preview?”

This has made my day, thank you a ton.

If you hover your mouse pointer over a component, it will display a small, descriptive text of that it does. The same goes for its inputs and outputs!

CP (Closest Point) finds the closest point to a reference point in a collection of points. I input your 4 corner points as reference points and it returns 4 closest points from all the mesh vertices.

DeBrep (Deconstruct Brep) deconstructs a brep into its relevant parts, like edges, vertices, etc.

Bang! (Explode Tree) returns a desired number of individual tree branches. Trees are GH data structures, like nested lists (or lists of lists).

Preview (Custom Preview) allows you to change the display of the object in question (i.e. color, material, etc.) in Rhino. Try plugging in a swatch!

You’re welcome.

1 Like