0
|
1 <?xml version='1.0' encoding='UTF-8'?>
|
|
2 <tool id="icqsol_refine_shape" name="Refine shape" version="1.0.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" label="Maximum edge length" help="Floating point number.">
|
|
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 <![CDATA[
|
|
51
|
|
52 Refines a shape by limiting all edges to a specified length, resulting in a more detailed shape.
|
|
53
|
|
54 * **Shape** - Shape to be refined.
|
|
55 * **Maximum edge length** - Points are added to the shape's edges that are longer than the defined maximum length.
|
|
56 ]]>
|
|
57 </help>
|
|
58 <expand macro="citations" />
|
|
59 </tool>
|