57 lines
2.8 KiB
Plaintext
57 lines
2.8 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||
|
<_name>Elliptic Stretch</_name>
|
||
|
<id>fablabchemnitz.de.elliptic_stretch</id>
|
||
|
<dependency type="extension">org.inkscape.output.svg.inkscape</dependency>
|
||
|
<dependency type="executable" location="extensions">fablabchemnitz_elliptic_stretch.py</dependency>
|
||
|
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||
|
<dependency type="executable" location="extensions">simpletransform.py</dependency>
|
||
|
<dependency type="executable" location="extensions">cubicsuperpath.py</dependency>
|
||
|
<dependency type="executable" location="extensions">cspsubdiv.py</dependency>
|
||
|
<dependency type="executable" location="extensions">bezmisc.py</dependency>
|
||
|
<_param name="Header" type="description" xml:space="preserve">
|
||
|
This extension will horizontally stretch your drawing. The
|
||
|
amount of stretch increases towards the poles of your egg
|
||
|
(i.e., increases with distance away from the equator). The
|
||
|
stretching is such that when plotted, the resulting plot
|
||
|
appears much like your original drawing. The stretching of
|
||
|
the horizontal near the poles counters the decreasing
|
||
|
circumference of lines of latitude as you approach the poles
|
||
|
of a sphere or egg.
|
||
|
|
||
|
Apply this extension just before plotting. Note that it
|
||
|
turns all objects into paths composed of line segments.
|
||
|
|
||
|
If no objects are selected, then the entire document is
|
||
|
transformed. In this case, a vertical line passing through
|
||
|
your document's center (width / 2) will remain unchanged.
|
||
|
The farther a vertical line is from the center, the more it
|
||
|
will be distorted.
|
||
|
|
||
|
If objects are selected then a vertical line passing through
|
||
|
the horizontal midpoint of the bounding box containing the
|
||
|
selected objects will remain unchanged.
|
||
|
|
||
|
The vertical smoothing is the vertical segment length to
|
||
|
break non-horizontal lines into so that they are smoothly but
|
||
|
continuously distorted.
|
||
|
|
||
|
The curve smoothing value is the same control as in the
|
||
|
Eggbot Control extension. It needs to be applied here
|
||
|
before plotting as all curves will be rendered to straight
|
||
|
line segments by this extension.
|
||
|
</_param>
|
||
|
<param name="maxDy" type="float" min="0.0001" max="999.0" _gui-text="Vertical smoothing (lower for more)">5.0</param>
|
||
|
<param name="smoothness" type="float" min="0.0001" max="5" _gui-text=" Curve smoothing (lower for more)">0.2</param>
|
||
|
<effect needs-live-preview="false">
|
||
|
<object-type>all</object-type>
|
||
|
<effects-menu>
|
||
|
<submenu _name="FabLab Chemnitz">
|
||
|
<submenu _name="Modify existing Path(s)" />
|
||
|
</submenu>
|
||
|
</effects-menu>
|
||
|
</effect>
|
||
|
<script>
|
||
|
<command reldir="extensions" interpreter="python">fablabchemnitz_elliptic_stretch.py</command>
|
||
|
</script>
|
||
|
</inkscape-extension>
|