Set direction at curve end points

I have a wire connecting two surfaces. I want the wire to be projected out from the surfaces before its shape resolves naturally given the other properties I’ve specified (e.g., bending resistance, weight, etc.).

In my attempt, I used a Direction goal to set the directions of the first and last line segments in the discretised wire. It looks like this causes some alignment to be done but unfortunately not in the direction that I have specified.

example-set-curve-direction.gh (28.7 KB)

I wouldn’t use the Direction goal for this, but instead I would use a rotating Anchor on the second and second-to-last points of the polyline to control the directions of the first and last segment:


bending_start_end_direction.gh (15.8 KB)

2 Likes

Thank you for the suggestion. I was able to convert the surface normals that I had to rotation angles and everything works like a charm.

1 Like