How to make an exact straight line between to point

Hi everyone,
as you see in the pictures,I tried to divide two curves and make lines between two points. But my problem here is how to have exact position between points and have a straight line ?
Thank you for your help in advance.

Esterno 01-cylinder_SBY.gh (13.2 KB)



When you say ‘straight’ - do you mean perfectly vertical? Your wavy curve doesn’t seem to lie perfectly above the curve below so the lines connecting them won’t be perfectly vertical. I used a surface instead.

1 Like

yes vertical… that’s awesome. thank u so much

Since the bottom point is a fixed z value you can also just replace the z-value of the top points with the same x,y values.

2 Likes

There is a section where the two curves are not aligned when both are projected to the XY plane.

And dividing the longer top curve will not necessarily produce points aligned with points on the bottom curve.

2 Likes

yea, that’s the point

Further analysis shows that despite appearances, the bottom curve is not a perfect circle. The top curve is closer to a circle so I projected the top curve to an XY plane defined by the bottom curve’s centroid. Then divided the new bottom curve to get points for vertical lines that intersect the top curve.


Esterno 01-cylinder_SBY_2023Sep29a.gh (11.6 KB)

1 Like

Thank you for your help