Mercurial > repos > greg > icqsol_color_surface_field
changeset 16:e8fe7af37fac draft
Uploaded
author | greg |
---|---|
date | Mon, 25 Jan 2016 07:55:40 -0500 |
parents | f91bc4e0bcab |
children | fb6a04e47fdc |
files | icqsol_color_surface_field.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)