YourYou could model your cave will be consisted of multiple points. Eachas a sequence of these points has a size, each with an associated size, with it. Now you will have line segmentslines connecting them. Imagine these pointsThen treat each point and linesline as metaballsmetaballs and metacylinders. This approach will givegives you a basic shape for your cave.Now, to which you might want to start adding variation. You may want to try, such as by randomly offsetting vertices.
This is my approach to this problem and there may be others which are better.