From the chat...
dzach wrote: BTW there is this fine application, Therion[L1 ], that does cave mapping with tcl/tk.
Basic drawing instructions [L2 ]
[Category Application]