High and Low Points along Curve

Hello All,

I have to following challenge. :grimacing:

  1. Divide a curve by length, not along the curve, but along a horisontal plane. I think I got this sorted. :roll_eyes:
    Q: I would like to know if there is a better way? Please bare in mind the input curve could also be a tree.

  2. I need to project these points back to the original curve to get x,y,z coordinates where they intersect. Again, I think I got this. :roll_eyes:
    Q: Is there a better way?

  3. I also need to get the high and low points along the curve. This is where I struggle. :grimacing::thinking: Curve Extremes only outputs overall high and low.
    Q: How do I calculate the high and low points along the curve as shown with the green circles in the image? I will also need the get the x,y,z coordinates for these points.

Divide Curve along horisontal Curve.3dm (44.1 KB) Divide Curve along horisontal plane.gh (20.3 KB)

Divide a curve by length, not along the curve, but along a horisontal plane.

Just use Contour.


Contour.gh (6.6 KB)

missing

missing2

Of the projected points, white is the high point, yellow is the low. (Note: I created this curve myself because I can’t read your R6 .3dm file. Internalizing geometry avoids that problem.)


Divide_Curve_2019Nov7a.gh (24.5 KB)

Thanks. @Michael_Pryor Contour work well.

Any advice on the high (peaks) and lows (troughs). Green circles on image 2?