Updated occult for vpyptools supporting new -k parameter
This commit is contained in:
parent
0e7d1e2178
commit
e2dd99587c
@ -95,6 +95,7 @@ class vpypetools (inkex.EffectExtension):
|
|||||||
# Plugin Occult
|
# Plugin Occult
|
||||||
self.arg_parser.add_argument("--plugin_occult", type=inkex.Boolean, default=False)
|
self.arg_parser.add_argument("--plugin_occult", type=inkex.Boolean, default=False)
|
||||||
self.arg_parser.add_argument("--plugin_occult_tolerance", type=float, default=0.01, help="Max distance between start and end point to consider a path closed (default 0.01 mm)")
|
self.arg_parser.add_argument("--plugin_occult_tolerance", type=float, default=0.01, help="Max distance between start and end point to consider a path closed (default 0.01 mm)")
|
||||||
|
self.arg_parser.add_argument("--plugin_occult_keepseparatelayer", type=inkex.Boolean, default=False, help="Put occulted lines to separate layer")
|
||||||
|
|
||||||
# Free Mode
|
# Free Mode
|
||||||
self.arg_parser.add_argument("--tab")
|
self.arg_parser.add_argument("--tab")
|
||||||
@ -280,6 +281,8 @@ class vpypetools (inkex.EffectExtension):
|
|||||||
# Plugin Occult
|
# Plugin Occult
|
||||||
if self.options.plugin_occult is True:
|
if self.options.plugin_occult is True:
|
||||||
command = "occult --tolerance " + str(self.options.plugin_occult_tolerance)
|
command = "occult --tolerance " + str(self.options.plugin_occult_tolerance)
|
||||||
|
if self.options.plugin_occult_keepseparatelayer is True:
|
||||||
|
command += " --keep-occulted"
|
||||||
|
|
||||||
# Split All
|
# Split All
|
||||||
if self.options.splitall is True:
|
if self.options.splitall is True:
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
<label>This plugin command removes lines hidden by polygons. It acts like a trimmer to receive a clean set of visible paths only. It does not remove common lines between opened paths, but for closed polygons. You need to install occult plugin for vpype. See vpypetools documentation.</label>
|
<label>This plugin command removes lines hidden by polygons. It acts like a trimmer to receive a clean set of visible paths only. It does not remove common lines between opened paths, but for closed polygons. You need to install occult plugin for vpype. See vpypetools documentation.</label>
|
||||||
<param name="plugin_occult" type="bool" gui-hidden="true">true</param>
|
<param name="plugin_occult" type="bool" gui-hidden="true">true</param>
|
||||||
<param name="plugin_occult_tolerance" type="float" min="0.000" max="99999.000" precision="3" gui-text="tolerance (mm)" gui-description="Max distance between start and end point to consider a path closed (default 0.01 mm)">0.01</param>
|
<param name="plugin_occult_tolerance" type="float" min="0.000" max="99999.000" precision="3" gui-text="tolerance (mm)" gui-description="Max distance between start and end point to consider a path closed (default 0.01 mm)">0.01</param>
|
||||||
|
<param name="plugin_occult_keepseparatelayer" gui-text="Put occulted lines to separate layer" type="bool">false</param>
|
||||||
</page>
|
</page>
|
||||||
<page name="general_settings" gui-text="General Settings">
|
<page name="general_settings" gui-text="General Settings">
|
||||||
<label appearance="header">Preprocessing</label>
|
<label appearance="header">Preprocessing</label>
|
||||||
|
Reference in New Issue
Block a user