test: add arc move to check iterpolation

This commit is contained in:
2025-04-12 22:45:00 +02:00
parent a6d67790e4
commit d3fcba9ebc
2 changed files with 581 additions and 0 deletions

364
test/test_arc.svg Normal file
View File

@@ -0,0 +1,364 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
sodipodi:docname="test_arc.svg"
id="svg5"
version="1.1"
viewBox="0 0 297 210"
height="210mm"
width="297mm"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.81512706"
inkscape:cx="222.05127"
inkscape:cy="435.51492"
inkscape:window-width="2560"
inkscape:window-height="1368"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<rect
x="204.85658"
y="194.19897"
width="876.10419"
height="315.01569"
id="rect244" />
<marker
id="CheckToolsAndOPMarker"
orient="auto"
refX="-4"
refY="-1.687441"
style="overflow:visible">
<path
d="m 4.588864,-1.687441 0.0,0.0 L 9.177728,0.0 c -0.73311,-0.996261 -0.728882,-2.359329 0.0,-3.374882"
style="fill:#000044;fill-rule:evenodd;stroke:none"
id="path5372" />
</marker>
<marker
id="DrawCurveMarker"
orient="auto"
refX="-4"
refY="-1.687441"
style="overflow:visible">
<path
d="m 4.588864,-1.687441 v 0 L 9.177728,0 c -0.73311,-0.996261 -0.728882,-2.359329 0,-3.374882"
style="fill:#000044;fill-rule:evenodd;stroke:none"
id="path5375" />
</marker>
<marker
id="DrawCurveMarker_r"
orient="auto"
refX="4"
refY="-1.687441"
style="overflow:visible">
<path
d="m -4.588864,-1.687441 0.0,0.0 L -9.177728,0.0 c 0.73311,-0.996261 0.728882,-2.359329 0.0,-3.374882"
style="fill:#000044;fill-rule:evenodd;stroke:none"
id="path5378" />
</marker>
<marker
id="InOutPathMarker"
orient="auto"
refX="-4"
refY="-1.687441"
style="overflow:visible">
<path
d="m 4.588864,-1.687441 0.0,0.0 L 9.177728,0.0 c -0.73311,-0.996261 -0.728882,-2.359329 0.0,-3.374882"
style="fill:#0072a7;fill-rule:evenodd;stroke:none"
id="path5381" />
</marker>
</defs>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<path
style="fill:none;stroke:#000000;stroke-width:0.264583"
d="m 14.552637,116.39357 c 65.106764,-39.849838 37.604718,58.37159 88.118643,26.94074 50.51392,-31.43086 69.03563,-1.68378 98.22142,-3.36759 29.1858,-1.68381 92.60881,-13.47034 58.93291,-38.7273 C 226.14969,75.982452 125.1219,195.53198 166.65554,113.02598 208.18918,30.519984 136.90844,109.65839 100.42622,58.58325 63.944003,7.5081061 54.402469,97.871802 54.402469,97.871802"
id="path686" />
<g
gcodetools="Gcodetools orientation group"
id="g748">
<g
gcodetools="Gcodetools orientation point (2 points)"
id="g738">
<path
style="stroke:none;fill:#000000;"
gcodetools="Gcodetools orientation point arrow"
d="m 0 210 l 2.9375 -6.34375 l 0.8125 1.90625 l 6.84375 -6.84375 l 0 0 l 0.6875 0.6875 l -6.84375 6.84375 l 1.90625 0.8125 z"
id="path732" />
<text
x="10.0"
y="200.0"
style="font-family:DejaVu Sans;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:DejaVu Sans;fill:#000000;fill-opacity:1;stroke:none;font-size:10.000000px;"
gcodetools="Gcodetools orientation point text"
xml:space="preserve"
id="text736"><tspan
x="10.0"
y="200.0"
sodipodi:role="line"
id="tspan734">(0.0; 0.0; 0.00000)</tspan></text>
</g>
<g
gcodetools="Gcodetools orientation point (2 points)"
id="g746">
<path
style="stroke:none;fill:#000000;"
gcodetools="Gcodetools orientation point arrow"
d="m 100 210 l 2.9375 -6.34375 l 0.8125 1.90625 l 6.84375 -6.84375 l 0 0 l 0.6875 0.6875 l -6.84375 6.84375 l 1.90625 0.8125 z"
id="path740" />
<text
x="110.0"
y="200.0"
style="font-family:DejaVu Sans;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:DejaVu Sans;fill:#000000;fill-opacity:1;stroke:none;font-size:10.000000px;"
gcodetools="Gcodetools orientation point text"
xml:space="preserve"
id="text744"><tspan
x="110.0"
y="200.0"
sodipodi:role="line"
id="tspan742">(100.0; 0.0; -0.10000)</tspan></text>
</g>
</g>
<g
gcodetools="Gcodetools tool definition"
transform="translate(-398.17915,30.917996)"
id="g915">
<path
gcodetools="Gcodetools tool background"
style="fill:#00ff00;fill-opacity:0.5;stroke:#444444"
d="M -20,-20 H 380 V 155 H -20 Z"
id="path833" />
<g
gcodetools="Gcodetools tool parameter"
id="g843">
<text
x="0"
y="0"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text837"><tspan
x="0"
y="0"
sodipodi:role="line"
id="tspan835">name</tspan></text>
<text
x="150"
y="0"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text841"><tspan
x="150"
y="0"
sodipodi:role="line"
id="tspan839">Cylindrical cutter</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g853">
<text
x="0"
y="20"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text847"><tspan
x="0"
y="20"
sodipodi:role="line"
id="tspan845">id</tspan></text>
<text
x="150"
y="20"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text851"><tspan
x="150"
y="20"
sodipodi:role="line"
id="tspan849">Cylindrical cutter 0001</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g863">
<text
x="0"
y="35"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text857"><tspan
x="0"
y="35"
sodipodi:role="line"
id="tspan855">diameter</tspan></text>
<text
x="150"
y="35"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text861"><tspan
x="150"
y="35"
sodipodi:role="line"
id="tspan1039">1</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g873">
<text
x="0"
y="50"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text867"><tspan
x="0"
y="50"
sodipodi:role="line"
id="tspan865">feed</tspan></text>
<text
x="150"
y="50"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text871"><tspan
x="150"
y="50"
sodipodi:role="line"
id="tspan869">400</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g883">
<text
x="0"
y="65"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text877"><tspan
x="0"
y="65"
sodipodi:role="line"
id="tspan875">penetration angle</tspan></text>
<text
x="150"
y="65"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text881"><tspan
x="150"
y="65"
sodipodi:role="line"
id="tspan879">90</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g893">
<text
x="0"
y="80"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text887"><tspan
x="0"
y="80"
sodipodi:role="line"
id="tspan885">penetration feed</tspan></text>
<text
x="150"
y="80"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text891"><tspan
x="150"
y="80"
sodipodi:role="line"
id="tspan889">100</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g903">
<text
x="0"
y="95"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text897"><tspan
x="0"
y="95"
sodipodi:role="line"
id="tspan895">depth step</tspan></text>
<text
x="150"
y="95"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text901"><tspan
x="150"
y="95"
sodipodi:role="line"
id="tspan899">1</tspan></text>
</g>
<g
gcodetools="Gcodetools tool parameter"
id="g913">
<text
x="0"
y="110"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field name"
xml:space="preserve"
id="text907"><tspan
x="0"
y="110"
sodipodi:role="line"
id="tspan905">tool change gcode</tspan></text>
<text
x="150"
y="110"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;font-family:'DejaVu Sans';fill:#000000;fill-opacity:1;stroke:none"
gcodetools="Gcodetools tool definition field value"
xml:space="preserve"
id="text911"><tspan
x="150"
y="110"
sodipodi:role="line"
id="tspan909">(None)</tspan></text>
</g>
</g>
</g>
<g
id="g2335" />
<g
id="g3000" />
</svg>

After

Width:  |  Height:  |  Size: 14 KiB