Make generation of 3D figures optional (as this this is rather resource-hungry).