Create a 3D plane and plot the line on it

Maybe these examples from the collection will help you?

ColoredGridWithSprites
PointInPolygon
ConstructionBasis

or
Construction of frames with contour/profile

2 Likes