changeset 3:1371f6eeb73c draft

Uploaded
author greg
date Mon, 14 Dec 2015 20:01:09 -0500
parents eb0b9337e095
children 34af65e1e8bf
files icqsol_add_texture.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)