Fixed lasercut polygon

This commit is contained in:
leyghisbb 2021-05-04 23:01:02 +02:00
parent 4544be8d30
commit e35390696d
2 changed files with 15 additions and 15 deletions

View File

@ -11,33 +11,33 @@
<option value="cm">cm</option>
<option value="in">in</option>
</param>
<label appearance="header">Outer Shape</label>
<label appearance="header">Outer shape</label>
<param name="o_type" gui-text="Type" type="optiongroup" appearance="combo">
<option value="1">Circle</option>
<option value="2">Polygone</option>
<option value="2">Polygon</option>
</param>
<param name="o_radius" type="float" precision="3" min="0.0" max="10000.0" gui-text="Radius">1.0</param>
<param name="o_edges" type="int" min="3" max="100" gui-text="Edges">3</param>
<param name="o_r_type" type="optiongroup" appearance="combo" gui-text="Radius">
<option value="1">To Edge</option>
<option value="2">To Face</option>
<option value="1">To edge</option>
<option value="2">To face</option>
<option value="3">Side length</option>
</param>
<param name="o_offset" type="float" precision="3" min="0.0" max="360.0" gui-text="Offset">0.0</param>
<label appearance="header">Inner Shape</label>
<param name="o_offset" type="float" precision="3" min="0.0" max="360.0" gui-text="Offset angle">0.0</param>
<label appearance="header">Inner shape</label>
<param name="i_type" gui-text="Type" type="optiongroup" appearance="combo">
<option value="1">None</option>
<option value="2">Circle</option>
<option value="3">Polygone</option>
<option value="3">Polygon</option>
</param>
<param name="i_radius" type="float" precision="3" min="0.0" max="10000.0" gui-text="Radius">1.0</param>
<param name="i_edges" type="int" min="3" max="100" gui-text="Edges">3</param>
<param name="i_r_type" gui-text="Radius" type="optiongroup" appearance="combo">
<option value="1">To Edge</option>
<option value="2">To Face</option>
<option value="1">To edge</option>
<option value="2">To face</option>
<option value="3">Side length</option>
</param>
<param name="i_offset" type="float" precision="3" min="0.0" max="360.0" gui-text="Offset">0.0</param>
<param name="i_offset" type="float" precision="3" min="0.0" max="360.0" gui-text="Offset angle">0.0</param>
</vbox>
<spacer/>
<separator/>
@ -47,12 +47,12 @@
<separator/>
<param name="kerf" type="float" precision="3" min="0.0" max="10000.0" gui-text="Kerf (cut width)">0.1</param>
<param name="spacing" type="float" precision="3" min="0.0" max="10000.0" gui-text="Spacing">1</param>
<param name="color1" type="color" appearance="colorbutton" gui-text="Color Inner">1923076095</param>
<param name="color2" type="color" appearance="colorbutton" gui-text="Color Outer">4012452351</param>
<param name="color1" type="color" appearance="colorbutton" gui-text="Color inner">1923076095</param>
<param name="color2" type="color" appearance="colorbutton" gui-text="Color outer">4012452351</param>
<param name="speed" type="int" min="500" max="100000" gui-text="Speed">2500</param>
<param name="intensity" type="int" min="0" max="100" gui-text="Intensity">85</param>
<param name="pass_offset" type="int" min="0" max="100" gui-text="Pass Offset">0</param>
<param name="displaylasertag" type="bool" gui-text="Display Laser Tag">false</param>
<param name="pass_offset" type="int" min="0" max="100" gui-text="Pass offset">0</param>
<param name="displaylasertag" type="bool" gui-text="Display laser tag">false</param>
<param name="lasertag" type="string" gui-text="lasertag">=pass%n:%s:%i:%c=</param>
</vbox>
</hbox>

View File

@ -52,7 +52,7 @@ def svg_from_points(points,offset):
s+='Z'
return s
class Polygon(inkex.EffecExtension):
class Polygon(inkex.EffectExtension):
def add_arguments(self, pars):
pars.add_argument('--page')