-
Notifications
You must be signed in to change notification settings - Fork 2
/
icqsol_coarsen_shape.xml
57 lines (54 loc) · 2.3 KB
/
icqsol_coarsen_shape.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version='1.0' encoding='UTF-8'?>
<tool id="icqsol_coarsen_shape" name="Coarsen shape" version="@[email protected]">
<description></description>
<macros>
<import>icqsol_macros.xml</import>
</macros>
<expand macro="requirements" />
<command>
<![CDATA[
python $__tool_directory__/icqsol_coarsen_shape.py
--input "$input"
--input_file_format_and_type $input.ext
--input_dataset_type $input.metadata.dataset_type
--min_cell_area $min_cell_area
--output "$output"
--output_vtk_type $output_vtk_type
]]>
</command>
<inputs>
<param name="input" type="data" format="plyascii,plybinary,vtkascii,vtkbinary" label="Shape">
<validator type="dataset_ok_validator" />
</param>
<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).">
<validator type="in_range" min="0" exclude_min="true" />
</param>
<expand macro="output_vtk_type_params" />
</inputs>
<outputs>
<data name="output" format="vtkascii" label="${tool.name} ${on_string} Min cell area: ${min_cell_area}">
<actions>
<action type="format">
<option type="from_param" name="output_vtk_type" />
</action>
</actions>
</data>
</outputs>
<tests>
<test>
<param name="input" value="box_refined_with_surface_field.vtkascii" ftype="vtkascii" />
<param name="input_file_format_and_type" value="vtkascii" />
<param name="input_dataset_type" value="POLYDATA" />
<param name="min_cell_area" value="0.5" />
<output name="output" file="box_coarsened.vtkascii" ftype="vtkascii" />
<param name="output_vtk_type" value="vtkascii" />
</test>
</tests>
<help>
**What it does**
Coarsens a shape by ensuring that cells are larger than a given tolerance, resulting in a less detailed shape.
* **Shape** - Shape to be coarsened.
* **Minimum cell area** - The shape's cells that have area smaller than this number will be merged.
</help>
<expand macro="citations" />
</tool>