smoother.xml 1.8 KB
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
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
<OpenFlipper>
    <element name="smooth_smooth">
    <category>Algorithms</category>
    <short>Object smoother</short>
    <dataflow>true</dataflow>
    <inputs>
      <input name="obj" type="ObjectId">
        <short>ID of an Object</short>
        <long>ID of an Object</long>
      </input>
      <input name="iterations" type="Number" external="false">
        <short>Number of iterations</short>
        <long>Desired number of smoothing iterations</long>
        <min>1</min>
        <max>100</max>
        <precision>1</precision>
      </input>
      <input name="direction" type="Selection" external="false">
        <short>Smoothing direction</short>
        <multiple>true</multiple>
        <default>tangential</default>
        <names>tangential,normal</names>
        <descriptions>Tangential,Normal</descriptions>
      </input>
      <input name="continuity" type="Selection" external="false">
        <short>Smoothing continuity</short>
Jan Möbius's avatar
Jan Möbius committed
27
28
29
        <default>C0</default>
        <names>C0,C1</names>
        <descriptions>C0,C1</descriptions>
Jan Möbius's avatar
 
Jan Möbius committed
30
31
32
33
34
35
36
37
      </input>
      <input name="maxDistance" type="Number" external="false">
        <short>Maximal distance</short>
        <long>Maximal distance the smoothed mesh is allowed to differ from the original (0.0 = no restriction).</long>
        <min>0.0</min>
        <max>1000000000</max>
        <precision>0.000001</precision>
      </input>
Jan Möbius's avatar
Jan Möbius committed
38
39
40
41
42
      <input name="keepFeatures" type="Bool" external="false" runtime="false">
          <short>Keep features</short>
          <long>Keep the original features intact</long>
          <default>true</default>
      </input>
Jan Möbius's avatar
 
Jan Möbius committed
43
44
    </inputs>
    <code>
Jan Möbius's avatar
Jan Möbius committed
45
      smoother.smooth ([input="obj"], [input="iterations"], [input="direction"], [input="continuity"], [input="maxDistance"], [input="keepFeatures"]);
Jan Möbius's avatar
 
Jan Möbius committed
46
47
    </code>
  </element>
Jan Möbius's avatar
Jan Möbius committed
48
</OpenFlipper>