This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft_unfold/papercraft_unfold.inx

57 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Papercraft Unfold</name>
<id>fablabchemnitz.de.papercraft_unfold</id>
<param name="tab" type="notebook">
<page name="general" gui-text="Input / General">
<param name="inputfile" type="path" gui-text="Input File" gui-description="The model to unfold" filetypes="obj,off,ply,stl"
mode="file">/your/beautiful/3dmodel/file</param>
<param name="generatelabels" type="bool" gui-text="Generate labels for edges">true</param>
<param name="resizetoimport" type="bool" gui-text="Resize the canvas to the imported drawing's bounding box">true</param>
<param name="extraborder" type="float" precision="3" gui-text="Add extra border around fitted canvas">0.0</param>
<param name="extraborder_units" type="optiongroup" appearance="combo" gui-text="Border offset units">
<option value="mm">mm</option>
<option value="cm">cm</option>
<option value="in">in</option>
<option value="pt">pt</option>
<option value="px">px</option>
</param>
<param name="show_fstl" type="bool" gui-text="Show converted (and fixed) STL in fstl Viewer">true</param>
</page>
<page name="meshfixing" gui-text="Mesh Fixing / Adjusting (ADMesh)">
<param name="exact" type="bool" gui-text="Only check for perfectly matched edges">true</param>
<param name="nearby" type="bool" gui-text="Find and connect nearby facets. Correct bad facets">true</param>
<param name="tolerance" type="float" min="0.0" max="10000.0" precision="4" gui-text="Initial tolerance to use for nearby check">0.0</param>
<param name="iterations" type="int" min="1" max="1000" gui-text="Number of iterations for nearby check">1</param>
<param name="increment" type="float" min="0.0" max="10000.0" precision="4" gui-text="Amount to increment tolerance after iteration">0.0</param>
<param name="remove_unconnected" type="bool" gui-text="Remove facets that have 0 neighbors">true</param>
<param name="fill_holes" type="bool" gui-text="Add facets to fill holes">true</param>
<param name="normal_directions" type="bool" gui-text="Check and fix direction of normals (ie cw, ccw)">true</param>
<param name="reverse_all" type="bool" gui-text="Reverse the directions of all facets and normals">true</param>
<param name="normal_values" type="bool" gui-text="Check and fix normal values">true</param>
<separator/>
<param name="xy_mirror" type="bool" gui-text="XY-Mirror">false</param>
<param name="yz_mirror" type="bool" gui-text="YZ-Mirror">false</param>
<param name="xz_mirror" type="bool" gui-text="XZ-Mirror">false</param>
<param name="scale" type="float" min="0.0001" max="10000.0" precision="4" gui-text="Scale">1.0</param>
</page>
<page name="about" gui-text="About">
<label>Papercraft Unfold - by Mario Voigt / Stadtfabrikanten e.V. (2020)</label>
<label appearance="url">https://fablabchemnitz.de</label>
<label>License: GNU GPL v3</label>
<label>This project is a (fragile) toolchain to allow importing different models to create triangle mesh based flattenings. This extension also uses ADMesh to repair STL and to generate binary STL file. The fstl Viewer is used to have a checky view on the file. osresearch/papercraft finally flattens the file and creates the desired output.</label>
</page>
</param>
<effect needs-live-preview="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="FabLab Chemnitz">
<submenu name="Papercraft Flatteners"/>
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">papercraft_unfold.py</command>
</script>
</inkscape-extension>