Klafyvel/GearFactory

Issue when exporting SVG file

Closed this issue · 2 comments

There seems to be a problem when exporting SVG files. While eye-of-gnome and inkscape show differing results, they both depict broken gears, see the attached images (e-o-g with checkerboard background). I used the default settings for a single gear which are pre-entered in the GUI.

OS: Ubuntu 16.04

Here is the generated svg file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg width="211.908mm" height="216.908mm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" baseProfile="tiny" viewBox="0 0 211.908 216.908" >
<title>Gear factory</title>
<desc>File created by Gear Factory.</desc>
<g stroke="black" stroke-width="0.5" fill="none" class="wheel" id="wheel1" transform="translate(105.954,105.954)">
<g class="frame">
<path d="M103.074,-8.85287 A103.454,103.454 0 0,1 103.074,8.85287 L103.074,8.85287 L101.024,9.75072 L99.1741,10.4649 L97.5111,11.0261 L96.0236,11.4602 L94.701,11.7889 L93.5335,12.0308 L92.5126,12.2019 L91.6304,12.3159 L90.8802,12.3848 L90.256,12.4194 L89.753,12.4294 L89.3667,12.4234 L89.0937,12.4096 L88.9314,12.3959 L78.8177,10.9873 A79.5798,79.5798 0 0,173.7522,29.8924 L83.2153, 33.7292 L83.3628, 33.7985 L83.606, 33.9231 L83.9435, 34.111 L84.3743, 34.3712 L84.8975, 34.7132 L85.5127, 35.148 L86.2197, 35.6878 L87.0184, 36.3464 L87.9085, 37.1396 L88.8896, 38.0856 L89.9607, 39.2052 L91.1204, 40.5228 L92.3657, 42.0664 L93.6921, 43.8689 A103.454,103.454 0 0,1 84.8394,59.2026 L84.8394,59.2026 L82.6152,58.9553 L80.6557,58.6487 L78.9349,58.3032 L77.4297,57.9354 L76.1199,57.5588 L74.9879,57.1846 L74.0182,56.8223 L73.1972,56.4799 L72.513,56.1645 L71.9552,55.8825 L71.5145,55.6395 L71.183,55.4412 L70.9535,55.2928 L70.8197,55.1998 L62.7652,48.9232 A79.5798,79.5798 0 0,148.9261,62.763 L55.203, 70.8172 L55.2961, 70.9509 L55.4445, 71.1804 L55.6428, 71.5119 L55.8858, 71.9526 L56.1679, 72.5104 L56.4833, 73.1946 L56.8257, 74.0156 L57.1881, 74.9852 L57.5624, 76.1172 L57.939, 77.427 L58.3069, 78.9322 L58.6524, 80.653 L58.9591, 82.6124 L59.2066, 84.8367 A103.454,103.454 0 0,1 43.8732,93.69 L43.8732,93.69 L42.0706,92.3637 L40.527,91.1185 L39.2094,89.9589 L38.0897,88.8878 L37.1437,87.9068 L36.3504,87.0167 L35.6918,86.2181 L35.152,85.5111 L34.7172,84.8959 L34.3751,84.3727 L34.1149,83.942 L33.9269,83.6044 L33.8024,83.3612 L33.7331,83.2137 L29.8958,73.7508 A79.5798,79.5798 0 0,110.991,78.8172 L12.4, 88.9308 L12.4138, 89.0931 L12.4275, 89.3661 L12.4335, 89.7524 L12.4236, 90.2555 L12.389, 90.8796 L12.3201, 91.6298 L12.2062, 92.512 L12.0352, 93.533 L11.7933, 94.7004 L11.4646, 96.0231 L11.0307, 97.5106 L10.4695, 99.1736 L9.7554, 101.024 L8.85764, 103.074 A103.454,103.454 0 0,1 -8.84809,103.075 L-8.84809,103.075 L-9.74604,101.025 L-10.4603,99.1746 L-11.0216,97.5116 L-11.4557,96.0241 L-11.7845,94.7015 L-12.0265,93.5341 L-12.1976,92.5132 L-12.3116,91.631 L-12.3806,90.8808 L-12.4153,90.2566 L-12.4252,89.7535 L-12.4192,89.3672 L-12.4055,89.0943 L-12.3918,88.932 L-10.9837,78.8182 A79.5798,79.5798 0 0,1-29.889,73.7536 L-33.7254, 83.2169 L-33.7946, 83.3643 L-33.9192, 83.6076 L-34.1071, 83.9451 L-34.3673, 84.3759 L-34.7093, 84.8991 L-35.1441, 85.5144 L-35.6838, 86.2214 L-36.3424, 87.0201 L-37.1356, 87.9102 L-38.0815, 88.8913 L-39.2011, 89.9626 L-40.5185, 91.1222 L-42.0621, 92.3676 L-43.8645, 93.6941 A103.454,103.454 0 0,1 -59.1987,84.8422 L-59.1987,84.8422 L-58.9514,82.6179 L-58.6449,80.6585 L-58.2996,78.9376 L-57.9318,77.4323 L-57.5553,76.1226 L-57.1812,74.9905 L-56.8189,74.0208 L-56.4765,73.1998 L-56.1612,72.5156 L-55.8791,71.9578 L-55.6362,71.5171 L-55.4379,71.1855 L-55.2895,70.956 L-55.1965,70.8223 L-48.9202,62.7675 A79.5798,79.5798 0 0,1-62.7607,48.929 L-70.8146, 55.2063 L-70.9483, 55.2994 L-71.1778, 55.4478 L-71.5094, 55.6461 L-71.95, 55.8891 L-72.5078, 56.1712 L-73.192, 56.4867 L-74.0129, 56.8292 L-74.9826, 57.1916 L-76.1146, 57.5659 L-77.4243, 57.9426 L-78.9295, 58.3105 L-80.6503, 58.6561 L-82.6097, 58.9629 L-84.8339, 59.2105 A103.454,103.454 0 0,1 -93.688,43.8776 L-93.688,43.8776 L-92.3618,42.0749 L-91.1166,40.5312 L-89.9571,39.2136 L-88.886,38.0938 L-87.9051,37.1478 L-87.015,36.3545 L-86.2165,35.6958 L-85.5095,35.156 L-84.8943,34.7211 L-84.3711,34.379 L-83.9404,34.1188 L-83.6029,33.9308 L-83.3596,33.8062 L-83.2122,33.737 L-73.7495,29.8992 A79.5798,79.5798 0 0,1-78.8167,10.9946 L-88.9302, 12.4041 L-89.0926, 12.4179 L-89.3655, 12.4316 L-89.7518, 12.4377 L-90.2549, 12.4278 L-90.879, 12.3932 L-91.6293, 12.3243 L-92.5115, 12.2105 L-93.5324, 12.0395 L-94.6999, 11.7977 L-96.0225, 11.4691 L-97.5101, 11.0351 L-99.1731, 10.4741 L-101.023, 9.76008 L-103.073, 8.86241 A103.454,103.454 0 0,1 -103.075,-8.84333 L-103.075,-8.84333 L-101.025,-9.74138 L-99.1751,-10.4557 L-97.5121,-11.0171 L-96.0247,-11.4513 L-94.7021,-11.7802 L-93.5347,-12.0222 L-92.5137,-12.1933 L-91.6315,-12.3074 L-90.8813,-12.3764 L-90.2572,-12.4111 L-89.7541,-12.4211 L-89.3678,-12.4151 L-89.0949,-12.4014 L-88.9325,-12.3877 L-78.8187,-10.98 A79.5798,79.5798 0 0,1-73.755,-29.8856 L-83.2184, -33.7215 L-83.3659, -33.7908 L-83.6091, -33.9153 L-83.9467, -34.1033 L-84.3774, -34.3634 L-84.9007, -34.7054 L-85.516, -35.1401 L-86.2231, -35.6798 L-87.0218, -36.3384 L-87.9119, -37.1315 L-88.8931, -38.0774 L-89.9644, -39.1969 L-91.1241, -40.5143 L-92.3695, -42.0578 L-93.6961, -43.8602 A103.454,103.454 0 0,1 -84.8449,-59.1948 L-84.8449,-59.1948 L-82.6206,-58.9476 L-80.6612,-58.6412 L-78.9403,-58.2959 L-77.435,-57.9283 L-76.1252,-57.5518 L-74.9932,-57.1777 L-74.0234,-56.8155 L-73.2024,-56.4731 L-72.5182,-56.1578 L-71.9603,-55.8758 L-71.5197,-55.6329 L-71.1881,-55.4346 L-70.9586,-55.2863 L-70.8248,-55.1932 L-62.7697,-48.9174 A79.5798,79.5798 0 0,1-48.9319,-62.7584 L-55.2096, -70.8121 L-55.3027, -70.9458 L-55.4511, -71.1753 L-55.6494, -71.5068 L-55.8924, -71.9474 L-56.1746, -72.5052 L-56.49, -73.1894 L-56.8326, -74.0103 L-57.195, -74.98 L-57.5694, -76.1119 L-57.9462, -77.4216 L-58.3142, -78.9268 L-58.6598, -80.6476 L-58.9667, -82.607 L-59.2144, -84.8312 A103.454,103.454 0 0,1 -43.8819,-93.686 L-43.8819,-93.686 L-42.0792,-92.3598 L-40.5355,-91.1147 L-39.2178,-89.9553 L-38.098,-88.8842 L-37.1519,-87.9033 L-36.3585,-87.0133 L-35.6998,-86.2148 L-35.16,-85.5078 L-34.7251,-84.8926 L-34.3829,-84.3695 L-34.1227,-83.9388 L-33.9348,-83.6013 L-33.8101,-83.358 L-33.7408,-83.2106 L-29.9027,-73.7481 A79.5798,79.5798 0 0,1-10.9983,-78.8162 L-12.4083, -88.9296 L-12.422, -89.092 L-12.4358, -89.3649 L-12.4419, -89.7512 L-12.432, -90.2543 L-12.3974, -90.8785 L-12.3286, -91.6287 L-12.2148, -92.5109 L-12.0439, -93.5319 L-11.8021, -94.6993 L-11.4736, -96.022 L-11.0397, -97.5095 L-10.4787, -99.1726 L-9.76479, -101.023 L-8.86723, -103.073 A103.454,103.454 0 0,1 8.83853,-103.076 L8.83853,-103.076 L9.73666,-101.026 L10.4511,-99.1756 L11.0126,-97.5126 L11.4468,-96.0252 L11.7757,-94.7026 L12.0178,-93.5352 L12.189,-92.5143 L12.3031,-91.6321 L12.3721,-90.8819 L12.4069,-90.2578 L12.4169,-89.7547 L12.4109,-89.3684 L12.3972,-89.0955 L12.3835,-88.9331 L10.9763,-78.8192 A79.5798,79.5798 0 0,129.8822,-73.7564 L33.7177, -83.22 L33.7869, -83.3675 L33.9115, -83.6107 L34.0993, -83.9483 L34.3594, -84.3791 L34.7014, -84.9023 L35.1362, -85.5176 L35.6758, -86.2247 L36.3343, -87.0235 L37.1274, -87.9137 L38.0732, -88.8949 L39.1927, -89.9662 L40.5101, -91.126 L42.0535, -92.3715 L43.8558, -93.6982 A103.454,103.454 0 0,1 59.1908,-84.8477 L59.1908,-84.8477 L58.9438,-82.6234 L58.6374,-80.6639 L58.2922,-78.943 L57.9246,-77.4377 L57.5482,-76.1279 L57.1742,-74.9959 L56.812,-74.0261 L56.4697,-73.2051 L56.1544,-72.5208 L55.8724,-71.9629 L55.6296,-71.5222 L55.4313,-71.1907 L55.2829,-70.9612 L55.1899,-70.8274 L48.9144,-62.772 A79.5798,79.5798 0 0,162.7561,-48.9348 L70.8095, -55.2129 L70.9432, -55.306 L71.1727, -55.4544 L71.5042, -55.6528 L71.9448, -55.8958 L72.5026, -56.178 L73.1867, -56.4935 L74.0077, -56.836 L74.9773, -57.1985 L76.1092, -57.5729 L77.4189, -57.9498 L78.9241, -58.3179 L80.6449, -58.6636 L82.6043, -58.9706 L84.8284, -59.2184 A103.454,103.454 0 0,1 93.6839,-43.8862 L93.6839,-43.8862 L92.3578,-42.0835 L91.1128,-40.5397 L89.9535,-39.2219 L88.8825,-38.1021 L87.9016,-37.1559 L87.0117,-36.3626 L86.2131,-35.7038 L85.5062,-35.1639 L84.891,-34.729 L84.3679,-34.3868 L83.9372,-34.1266 L83.5997,-33.9386 L83.3565,-33.814 L83.2091,-33.7447 L73.7467,-29.9061 A79.5798,79.5798 0 0,178.8156,-11.0019 L88.9291, -12.4124 L89.0914, -12.4261 L89.3644, -12.4399 L89.7506, -12.446 L90.2537, -12.4362 L90.8779, -12.4016 L91.6281, -12.3328 L92.5103, -12.219 L93.5313, -12.0482 L94.6988, -11.8065 L96.0215, -11.478 L97.509, -11.0442 L99.1722, -10.4832 L101.023, -9.76944 L103.073, -8.87198 Z"/>
</g>
<g class="lighteningHoles">
<path d="M22.9129,10 A25,25 0 0,1 -2.79465,24.8433 L-20.7036,55.8669 A59.5798,59.5798 0 0,0 58.7346,10 Z"/>
<path d="M-20.1158,14.8444 A25,25 0 0,1 -20.1185,-14.8407 L-38.0332,-45.861 A59.5798,59.5798 0 0,0 -38.0247,45.868 Z"/>
<path d="M-2.79925,-24.8428 A25,25 0 0,1 22.911,-10.0042 L58.7328,-10.0109 A59.5798,59.5798 0 0,0 -20.714,-55.8631 Z"/>
</g>
<circle cx="0" cy="0" r="10"/>
<path d="M-15,0 H15 M0,-15 V15" />
</g>
<g transform="translate(2.5,213.908)" style="font-size:1mm" class="wheelDescr" id="descrWheel0">
<text>Tooth spacing : 50mm Primitive radius : 95.4958mm External radius : 103.454mm Number of teeth : 12</text>
</g>
</svg>

eog
inkscape

I just checked the file with firefox and chrome and both seem to interpret the svg file fine. As the svg files are very basic, I assume that they contain ambiguous data.

Okay, sorry. After updating Inkscape from 0.91 to 0.92 the file is drawn correctly -- which is quite surprising to me (as it looks like recent versions of eog AND Inkscape have difficulties rendering basic SVGs).