comparison icqsol_refine_shape.xml @ 0:d543f7bbe8da draft default tip

Uploaded
author iuc
date Tue, 23 Aug 2016 15:01:27 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d543f7bbe8da
1 <?xml version='1.0' encoding='UTF-8'?>
2 <tool id="icqsol_refine_shape" name="Refine shape" version="@WRAPPER_VERSION@.0">
3 <description></description>
4 <macros>
5 <import>icqsol_macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <command>
9 <![CDATA[
10 python $__tool_directory__/icqsol_refine_shape.py
11 --input "$input"
12 --input_file_format_and_type $input.ext
13 --input_dataset_type $input.metadata.dataset_type
14 --max_edge_length $max_edge_length
15 --output "$output"
16 --output_vtk_type $output_vtk_type
17 ]]>
18 </command>
19 <inputs>
20 <param name="input" type="data" format="plyascii,plybinary,vtkascii,vtkbinary" label="Shape">
21 <validator type="dataset_ok_validator" />
22 </param>
23 <param name="max_edge_length" type="float" value="0.1" label="Maximum edge length" help="Refine shape by restricting edges to this length.">
24 <validator type="in_range" min="0" exclude_min="true" />
25 </param>
26 <expand macro="output_vtk_type_params" />
27 </inputs>
28 <outputs>
29 <data name="output" format="vtkascii" label="${tool.name} ${on_string} Max edge length: ${max_edge_length}">
30 <actions>
31 <action type="format">
32 <option type="from_param" name="output_vtk_type" />
33 </action>
34 </actions>
35 </data>
36 </outputs>
37 <tests>
38 <test>
39 <param name="input" value="box_with_surface_field.vtkascii" ftype="vtkascii" />
40 <param name="input_file_format_and_type" value="vtkascii" />
41 <param name="input_dataset_type" value="POLYDATA" />
42 <param name="max_edge_length" value="0.1" />
43 <output name="output" file="box_refined.vtkascii" ftype="vtkascii" />
44 <param name="output_vtk_type" value="vtkascii" />
45 </test>
46 </tests>
47 <help>
48 **What it does**
49
50 Refines a shape by limiting all edges to a specified length, resulting in a more detailed shape.
51
52 * **Shape** - Shape to be refined.
53 * **Maximum edge length** - The shape's edges are smoothed by adding points to its edges that are longer than the defined maximum length.
54
55 </help>
56 <expand macro="citations" />
57 </tool>