I thought I should have two lists, one with the current Xs and Ys and another with the same Xs and Ys and some defined heights as their Zs. And then make some lines between these two lists and after that make the cylinders.
Can anybody help me to implement it?