Open source cave-surveying software package by Olly Betts. Centrelines and surfaces, but not drawing.
Download from http://survex.com/
Therion can use Survex’s loop closure algorithm, if you want.
Survex’s viewer Aven is required to view Therion or Survex *.3d outputs.
Therion