added several grid-walks

added new helper methods/classes (e.g. for heading)
new test cases
optimize the dijkstra
cleanups/refactoring
added timed-benchmarks to the log
many more...
This commit is contained in:
2016-01-24 18:59:06 +01:00
parent cdf97322f8
commit 9947dced15
30 changed files with 1406 additions and 94 deletions

32
tests/data/fp1.svg Normal file → Executable file
View File

@@ -26,17 +26,17 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="73.937318"
inkscape:cy="144.77356"
inkscape:cx="124.63903"
inkscape:cy="144.84968"
inkscape:document-units="px"
inkscape:current-layer="layer3"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:object-nodes="true"
inkscape:window-width="1920"
inkscape:window-height="1021"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-width="1600"
inkscape:window-height="837"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
@@ -51,7 +51,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@@ -60,8 +60,7 @@
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-796.36219)"
style="display:none"
sodipodi:insensitive="true">
style="display:inline">
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 8,1044.3622 0,-240.00001 240,0 0,168 -128,0 0,72.00001 -112,0"
@@ -151,6 +150,11 @@
id="path3389"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 160,876.36219 0,24"
id="path3381"
inkscape:connector-curvature="0" />
</g>
<g
inkscape:groupmode="layer"
@@ -168,8 +172,7 @@
inkscape:groupmode="layer"
id="layer2"
inkscape:label="2"
style="display:inline"
sodipodi:insensitive="true">
style="display:none">
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 112,104 40,0 0,-24 -40,0"
@@ -265,5 +268,10 @@
d="m 72,136 144,0"
id="path3438"
inkscape:connector-curvature="0" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 120,80 0,24"
id="path3379"
inkscape:connector-curvature="0" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB