Matching Planar Curve in Space with Key Heights?

I wonder if there is a better way of matching a planar curve in plan while generating its 3D counter part having certain key heights and interpolation the rest of the points in between.

So here I have the red curve given, and the vertical lines are the key heights.

I am not completely happy with the result but this is my attempt at it.


Match 2D Curve with Heights.gh (17.7 KB)

Is the curve-matching strictly necessary versus using the vertical lines as sections for sweeping along the planar curve?

I think whatever method you use to interpolate the Z coordinates of in-between points, at the end you need to Pull the resulting curve onto the original one extruded along Z:

this to avoid these mismatches:

Match 2D Curve with Heights_Pull_Curve.gh (18.5 KB)

[edit] @René_Corella you are a Genius :+1:

:rofl:

LoL

Most likely not? It seems @ShynnSup is intentionally ‘escalating’ the points and maybe wants a nicer/smoother transition through the key heights between lines? Is that even possible?

Actually the sweep naturally makes a really nice transition, I might use that! Thank you!

I was having trouble joining back the curve and rebuilding, it made funny kinks and lost precision.

Have you thought of unrolling the surface and solving the problem in 2D space?

Then flow it back to 3D


That did not occur to me :thinking:, would you mind showing a small sample what you have a mind?

Also curious haha

I tested a couple of quick thoughts, some didn’t really match in the top view, so far these did:
Match 2D Curve with Heights.gh (27.7 KB)

Match 2D Curve with Heights_b.gh (42.3 KB)

Something like this:

Compared to pulling the curve to the surface, this approach results in less control points.

Match 2D Curve with Heights_sporph.gh (32.4 KB)