How to make a three-dimensional structure like a tree root with a pipe?

I want to make a structure like the one in the picture with a glasshopper.

  1. Output the points where the pipe sticks into the ground, where the pipe intersects in the air, and where it connects to the concrete slab at the top with adjustability.
  2. Connect the output points to make a curve.
  3. make the curve into a pipe.
    I am a beginner and would like to learn how to do this!

Translated with DeepL Translate: The world's most accurate translator (free version)