Get the volume of this shape
double volume() { throw 'volume() not implemented for shape type $type'; }