 <p>In your first example, the path started at 125,275 and was at 125,275 again, before closing. Because 'Z' creates another smooth path segment connecting start and end point, you get that small loop. If you close it before returning to the startingpoint, you get the desired smooth shape touching all given points.</p> <p>This is the corrected version of the example path:</p> <pre><code>M125,275R 125,325 175,325 225,325 275,325 225,275 175,275Z </code></pre>