# HG changeset patch # User greg # Date 1453726540 18000 # Node ID e8fe7af37fac565da8b17ee2486597ac4419a940 # Parent f91bc4e0bcab1ac3199cc24e68ba9338b7da2955 Uploaded diff -r f91bc4e0bcab -r e8fe7af37fac icqsol_color_surface_field.py --- a/icqsol_color_surface_field.py Mon Jan 25 07:54:30 2016 -0500 +++ b/icqsol_color_surface_field.py Mon Jan 25 07:55:40 2016 -0500 @@ -26,12 +26,15 @@ # Get the vtkPolyData from the input dataset. vtk_poly_data = shape_mgr.loadAsVtkPolyData(args.input) # Add color to the data. -# TODO: Fix the following when we have this working. colored_vtk_poly_data = shape_mgr.colorSurfaceField(vtk_poly_data=vtk_poly_data, color_map=args.color_map, field_name=args.field_name, field_component=args.field_component_index) +# Write min/max field values. +minVal, maxVal = shape_mgr.getFieldRange(vtk_poly_data, args.field_name, args.field_component_index) +print 'component {2} min/max values of field {3}: {0}/{1}'.format(minVal, maxVal, args.field_component_index, args.field_name) + # Define the output file format and type. output_format, output_file_type = icqsol_utils.get_format_and_type(args.output_vtk_type) tmp_output_path = icqsol_utils.get_temporary_file_path(tmp_dir, output_format)