comparison icqsol_coarsen_shape.xml @ 0:6ff7cf6ec553 draft default tip

Uploaded
author iuc
date Tue, 23 Aug 2016 14:56:49 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:6ff7cf6ec553
1 <?xml version='1.0' encoding='UTF-8'?>
2 <tool id="icqsol_coarsen_shape" name="Coarsen 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_coarsen_shape.py
11 --input "$input"
12 --input_file_format_and_type $input.ext
13 --input_dataset_type $input.metadata.dataset_type
14 --min_cell_area $min_cell_area
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="min_cell_area" type="float" value="0.5" label="Minimum cell area" help="Coarsen shape by ensuring that cell area are bigger than a given tolerance (except at the edge of the domain).">
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} Min cell area: ${min_cell_area}">
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_refined_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="min_cell_area" value="0.5" />
43 <output name="output" file="box_coarsened.vtkascii" ftype="vtkascii" />
44 <param name="output_vtk_type" value="vtkascii" />
45 </test>
46 </tests>
47 <help>
48 **What it does**
49
50 Coarsens a shape by ensuring that cells are larger than a given tolerance, resulting in a less detailed shape.
51
52 * **Shape** - Shape to be coarsened.
53 * **Minimum cell area** - The shape's cells that have area smaller than this number will be merged.
54
55 </help>
56 <expand macro="citations" />
57 </tool>