Offset of non-planer polyline or curve

Hi,

Is there a way in Rhino to offset a curve or polyline that is not planer and works as Civil 3D by offsetting Feature Lines. where the points have the same Z value but the line segments have a different slope/grade.

Rhino

Civil 3D

grasshopper or script

offset2d_oldz_00.gh (8.1 KB)

for polyline it s simple to do a script or .gh definition see above.
you can expand above definition to work with grasshopper player and use it as command.

(no?) workaround

i hoped there is a nerdy and fast workaround but i did not find something nice and convincing.
possible candidates:
_extrudeCrv
_offsetSrf
_projectToCplane
_sweep1

hope this helps - kind regards - tom

Maybe ribbon can handle this?

thank you, the grasshopper script works well