# HG changeset patch # User greg # Date 1450141269 18000 # Node ID 1371f6eeb73cde104fe5f35901a6aac88e12f009 # Parent eb0b9337e095809ac53dce703ab24f3c920537dc Uploaded diff -r eb0b9337e095 -r 1371f6eeb73c icqsol_add_texture.py --- a/icqsol_add_texture.py Sat Dec 12 11:14:07 2015 -0500 +++ b/icqsol_add_texture.py Mon Dec 14 20:01:09 2015 -0500 @@ -29,14 +29,12 @@ # Get the vtk polydata from the input dataset. vtk_poly_data = shape_mgr.loadAsVtkPolyData(args.input) -# The ShapeManager.addTextureToVtkPolyData function expects -# a specific file extension at the end of the file path. -tmp_texture_file_path = icqsol_utils.get_input_file_path(tmp_dir, args.input_texture, args.input_texture_file_format) # Apply the texture to the shape's surface. vtk_poly_data = shape_mgr.addTextureToVtkPolyData(vtk_poly_data, - texture_file=tmp_texture_file_path, - max_edge_length=args.max_edge_length) + texture_file=args.input_texture, + max_edge_length=args.max_edge_length, + texture_file_format=args.input_texture_file_format) # Define the output file format and type (the output_format can only be 'vtk'). output_format, output_file_type = icqsol_utils.get_format_and_type(args.output_vtk_type)