public void outputXyz(File file) {
		stopImmediately();
		if (file == null)
			return;
		if (modelWriter == null) {
			modelWriter = new XyzWriter(model);
			modelWriter.addProgressListener(this);
		}
		try {
			modelWriter.write(file);
		}
		catch (IOException e) {
			e.printStackTrace();
		}
	}