kliment,
Yes it is possible.
It works exactly the same with the polyline tool as it works
with grouped line segments.
Draw a mesh outline with the mesh tool, draw contour lines with
the polyline tool, with the mesh selected click on each polyline
with the magic wand to create ridge lines ,
then select each ridge with the mesh tool
selected and assign a height to each contour.
Thank you,
Peter Devlin