changeset 7:ac88faf98564 draft

Uploaded
author greg
date Sat, 05 Dec 2015 10:27:17 -0500
parents 8c0ae2f44ea4
children 63d04a8f90b3
files icqsol_color_surface_field.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/icqsol_color_surface_field.py	Sat Dec 05 10:27:08 2015 -0500
+++ b/icqsol_color_surface_field.py	Sat Dec 05 10:27:17 2015 -0500
@@ -22,7 +22,7 @@
 input_format, input_file_type = icqsol_utils.get_format_and_type(args.input_file_format_and_type)
 
 # Instantiate a ShapeManager for loading the input.
-shape_mgr = ShapeManager(file_format='vtk', vtk_dataset_type=args.input_dataset_type)
+shape_mgr = ShapeManager(file_format=icqsol_utils.VTK, vtk_dataset_type=args.input_dataset_type)
 
 # Get the vtkPolyData from the input dataset.
 vtk_poly_data = shape_mgr.loadAsVtkPolyData(args.input)
@@ -38,7 +38,7 @@
 tmp_output_path = icqsol_utils.get_temporary_file_path(tmp_dir, output_format)
 
 # Make sure the ShapeManager's writer is VTK POLYDATA.
-shape_mgr.setWriter(file_format='vtk', vtk_dataset_type=icqsol_utils.POLYDATA)
+shape_mgr.setWriter(file_format=icqsol_utils.VTK, vtk_dataset_type=icqsol_utils.POLYDATA)
 
 # Save the output.
 shape_mgr.saveVtkPolyData(vtk_poly_data=colored_vtk_poly_data, file_name=tmp_output_path, file_type=output_file_type)