Pulling Mesh Vertices on Tween Curve in Kangaroo for a Pavilion Arc

Hi again, I have another question regarding this project of ours. Here are the previous threads.

  1. https://discourse.mcneel.com/t/creating-a-single-smooth-roof-surface-for-an-organically-shaped-pavilion/217943/12
  2. Retrimming the Surface Division of an Untrimmed Surface - #13 by rhino38
  3. How to Reorder a Data Tree To Create U and V Polylines for a Pavilion? - #16 by Baris

Here is the overview of the script.

My question is, how do I snap/pull these mesh vertices to this tween curve (green) so that it serves as an anchor? I would replicate this for all of the perimeter arcs. I don’t understand why it isn’t snapping to the tween curve when I’ve used the on curve component. Been struggling with this for a few days now.

The goal is to create a surface somewhat like this, meaning the center portion shouldn’t fall downwards, but rather bulge upwards.

The end goal is to then take this mesh and use its edges to create a network of purlins and rafters with one being under the other.

I had a reply on this previous thread Creating a Single Smooth Roof Surface for an Organically Shaped Pavilion - #10 by dfytz1 by @dfytz1 , who I took the concept of snapping the vertices on the curves from but can’t seem to recreate how they did it. I don’t want to just copy and paste someone else’s script and also I want to freely edit and change things as the client gives feedback, hence I’m trying it out myself, but haven’t got it to work.

Another issue I have, though more minor, is that some deconstructed mesh vertices don’t line up with the corners of the surface, while others do as seen here. No matter how much I change the quad remesh settings, they never align.

Any sort of help is highly appreciated. Here are the .3dm and .gh files. Thank you!

Pavilion Kangaroo Test forum.3dm (318.7 KB)

Kangaroo Pavilion Forum quetion 04-22.gh (26.9 KB)

I realize it was a simple mistake. Just had to connect straight from the list of points, in my screenshot the split tree to the OnCurve component. Or in this edited version to the closest points to the OnCurve. I didn’t need the pull to curve component for it to work.

Only problem is, the points don’t exactly align to the tween curve and there’s weird jagged edges like here.

Kangaroo decides which point is “anchor” based on tolerance (not only anchor, any other point component). It does not have tree structure inside the component (only goals can be made with tree structure). So if you want the solver to understand “this point of mesh should be fixed” the point you are providing to anchor goal should be very very close to it (from dec mesh component for example).

I was able to remove the jagged edges by using the curve closest point component instead of the closet point that I used here.

Thank you for the reply @dfytz1 . With regards to these points on the mesh that aren’t on the corners, would you have any idea how to get them exactly on the corner?

Just use target input on anchor component.

Thanks a lot @dfytz1