New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] DLP Projector -> Export SVG produces incomplete SVG #4311

Closed
N4rki opened this Issue Feb 19, 2018 · 8 comments

Comments

Projects
None yet
2 participants
@N4rki

N4rki commented Feb 19, 2018

Version

1.2.9-1272-gdc9d7ed7

Operating system type + version

Windows 10 Pro

Description

When slicing any filetype to SVG via Window -> DLP Projector -> Export SVG the generated SVG is always missing the last two or three lines of xml text.

Reproduce

Taking this example STL file: Train Engine wheels.zip

Slicing it as stated above produces the following svg:
Train Engine wheels_svg.zip
The incompleteness is only at the very bottom of the file. When we open it with an editor we see the following in the last section:

(...)
<g id="layer9" slic3r:z="4.1000" slic3r:slice-z="3.9000" slic3r:layer-height="0.4000">
		<path d="M 58.4608 17.4357 59.3813 17.2241 60.1623 16.9819 60.3994 16.8998 61.1425 16.5554 61.3603 16.4296 62.049 15.9897 62.2386 15.8251 62.863 15.2962 63.5103 14.6626 63.5619 14.5971 64.03 13.817 64.1452 13.5937 64.5143 12.8637 64.7829 12.0909 64.8536 11.85 65.0168 11.0492 65.0407 10.7991 65.0951 9.98179 65.0407 9.1661 65.0167 8.91643 64.8536 8.11556 64.7828 7.87472 64.5142 7.10188 64.399 6.87867 64.0299 6.14864 63.5616 5.36845 63.5102 5.30316 62.8628 4.6694 62.6734 4.50503 62.0488 3.97602 61.3599 3.536 61.1424 3.41035 60.3991 3.06592 60.1622 2.98393 59.3907 2.68822 59.3085 2.67646 58.378 2.51826 57.5076 2.54302 57.257 2.55499 56.4429 2.6374 56.199 2.69653 55.403 2.88608 54.6399 3.17944 54.4119 3.28362 53.6948 3.67752 53.4903 3.82289 52.8311 4.30742 52.1248 4.91483 52.0675 4.97498 51.562 5.70034 51.4261 5.91157 50.9584 6.59687 50.9274 6.6741 50.5583 7.54234 50.3804 8.39077 50.3328 8.63726 50.2241 9.44801 50.2241 9.69911 50.2241 10.5181 50.3329 11.3288 50.3804 11.5753 50.5979 12.3646 50.6913 12.5978 51.0093 13.3508 51.4262 14.0544 51.5622 14.2658 52.0697 14.9084 52.243 15.0902 52.8313 15.6586 53.036 15.8041 53.6951 16.2885 54.412 16.6823 54.6403 16.7866 55.4032 17.0798 55.6474 17.139 56.4432 17.3285 57.2571 17.4109 57.508 17.4228 58.3782 17.4476 z M 57.4628 13.5364 56.8975 13.4597 56.8086 13.4378 56.2665 13.2613 55.7636 12.992 55.6825 12.9496 55.2367 12.5947 55.1685 12.534 54.7939 12.1042 54.7419 12.0291 54.4495 11.5386 54.2479 11.0054 54.2154 10.9198 54.1138 10.3581 54.1027 10.2673 54.1027 9.69842 54.2044 9.13663 54.2154 9.0461 54.4169 8.51285 54.4494 8.42731 54.7419 7.93687 54.7939 7.86173 55.1684 7.43189 55.6142 7.07698 55.6824 7.01635 55.7634 6.97391 56.2664 6.70459 56.8085 6.52802 56.8973 6.50615 57.4627 6.42945 58.0316 6.45442 58.1228 6.45441 58.6792 6.58103 58.768 6.60289 59.2923 6.8276 59.3733 6.87003 59.8495 7.18393 59.9177 7.24456 60.3297 7.63869 60.665 8.10059 60.717 8.17574 60.9631 8.68937 60.9956 8.77492 61.1472 9.3242 61.1989 9.89132 61.21 9.98186 61.1582 10.5508 61.1472 10.6415 60.9956 11.1908 60.9631 11.2764 60.717 11.79 60.3818 12.2519 60.3298 12.3271 59.9178 12.7212 59.8496 12.7819 59.3734 13.0957 59.2924 13.1382 58.7681 13.3629 58.6793 13.3848 58.1229 13.5114 57.554 13.5364 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 34.5909 17.4361 35.5114 17.2245 36.2924 16.9823 36.5296 16.9002 37.2726 16.5558 37.4904 16.43 38.1791 15.9901 38.3687 15.8255 38.9931 15.2966 39.6404 14.663 39.6919 14.5975 40.1601 13.8174 40.2753 13.5941 40.6444 12.8641 40.913 12.0913 40.9837 11.8504 41.1469 11.0496 41.1708 10.7995 41.2252 9.98221 41.1708 9.16651 41.1468 8.91684 40.9837 8.11597 40.9129 7.87513 40.6443 7.10228 40.5291 6.87906 40.16 6.14905 39.6917 5.36886 39.6403 5.30357 38.9929 4.66981 38.8035 4.50543 38.1789 3.97643 37.49 3.53641 37.2725 3.41077 36.5292 3.06634 36.2924 2.98434 35.5208 2.68863 35.4386 2.67687 34.5081 2.51867 33.6377 2.54342 33.3871 2.55539 32.573 2.63781 32.3291 2.69694 31.5331 2.88649 30.77 3.17985 30.542 3.28403 29.8251 3.67793 29.6206 3.8233 28.9614 4.30783 28.2551 4.91523 28.1978 4.97538 27.6923 5.70075 27.5564 5.91198 27.0887 6.59729 27.0577 6.67451 26.6886 7.54275 26.5107 8.39118 26.4631 8.63767 26.3544 9.44841 26.3544 9.69951 26.3544 10.5185 26.4632 11.3292 26.5107 11.5758 26.7282 12.365 26.8216 12.5982 27.1396 13.3512 27.5565 14.0548 27.6925 14.2662 28.2 14.9088 28.3733 15.0906 28.9616 15.659 29.1663 15.8045 29.8254 16.2889 30.5421 16.6827 30.7704 16.787 31.5333 17.0803 31.7775 17.1395 32.5733 17.3289 33.3872 17.4113 33.6381 17.4233 34.5083 17.448 z M 33.0276 13.4601 32.9387 13.4382 32.3966 13.2617 31.8937 12.9924 31.8126 12.95 31.3668 12.5951 31.2986 12.5344 30.924 12.1046 30.8721 12.0295 30.5796 11.5391 30.378 11.0058 30.3455 10.9203 30.2439 10.3585 30.2328 10.2677 30.2328 9.69883 30.3345 9.13705 30.3455 9.04652 30.547 8.51326 30.5795 8.42772 30.872 7.93727 30.924 7.86213 31.2985 7.4323 31.7443 7.07738 31.8125 7.01675 31.8935 6.97431 32.3965 6.70501 32.9386 6.52843 33.0274 6.50656 33.5928 6.42986 34.1617 6.45482 34.2529 6.45482 34.8093 6.58144 34.8981 6.6033 35.4224 6.82801 35.5034 6.87044 35.9796 7.18434 36.0478 7.24497 36.4598 7.6391 36.7951 8.10101 36.8471 8.17615 37.0932 8.68977 37.1257 8.77531 37.2773 9.32461 37.329 9.89173 37.3401 9.98227 37.2883 10.5512 37.2773 10.6419 37.1257 11.1912 37.0932 11.2768 36.8471 11.7904 36.5119 12.2523 36.4599 12.3275 36.0479 12.7216 35.9797 12.7823 35.5035 13.0961 35.4225 13.1386 34.8982 13.3633 34.8094 13.3852 34.253 13.5118 33.6841 13.5368 33.5929 13.5368 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 10.8097 17.4365 11.7302 17.2249 12.5112 16.9827 12.7484 16.9006 13.4914 16.5562 13.7092 16.4304 14.3979 15.9905 14.5875 15.8259 15.2119 15.297 15.8592 14.6634 15.9108 14.5979 16.3789 13.8178 16.4941 13.5945 16.8632 12.8645 17.1318 12.0917 17.2025 11.8508 17.3657 11.05 17.3896 10.7999 17.444 9.9826 17.3896 9.16692 17.3656 8.91725 17.2025 8.11638 17.1317 7.87554 16.8631 7.10269 16.7479 6.87948 16.3788 6.14946 15.9105 5.36926 15.8591 5.30397 15.2117 4.67022 15.0223 4.50584 14.3977 3.97685 13.7088 3.53682 13.4913 3.41117 12.748 3.06675 12.5111 2.98475 11.7396 2.68905 11.6574 2.67728 10.7269 2.51908 9.85651 2.54383 9.60593 2.5558 8.79179 2.63821 8.5479 2.69734 7.75189 2.88689 6.98884 3.18025 6.76078 3.28443 6.04389 3.67833 5.8394 3.8237 5.18019 4.30823 4.47392 4.91563 4.41656 4.97579 3.91111 5.70116 3.77523 5.91239 3.30745 6.59768 3.27654 6.6749 2.90742 7.54317 2.72947 8.39159 2.68193 8.63808 2.57319 9.44882 2.57319 9.69992 2.5732 10.5189 2.68197 11.3296 2.72952 11.5762 2.94704 12.3654 3.04039 12.5986 3.35841 13.3516 3.7753 14.0552 3.91129 14.2666 4.41878 14.9092 4.59214 15.091 5.18036 15.6594 5.38509 15.8049 6.04415 16.2893 6.76088 16.6831 6.98923 16.7874 7.75207 17.0807 7.99629 17.1399 8.79208 17.3293 9.60599 17.4117 9.85691 17.4237 10.7271 17.4484 z M 9.24636 13.4605 9.15753 13.4387 8.61539 13.2621 8.11248 12.9928 8.03145 12.9504 7.5856 12.5955 7.51736 12.5348 7.14285 12.1051 7.09086 12.0299 6.79837 11.5395 6.59685 11.0062 6.56435 10.9207 6.46269 10.3589 6.45164 10.2682 6.45162 9.69924 6.55327 9.13746 6.56432 9.04693 6.76584 8.51366 6.79832 8.42812 7.09079 7.93768 7.14276 7.86254 7.51729 7.43272 7.96315 7.0778 8.03135 7.01717 8.11233 6.97473 8.61527 6.7054 9.15744 6.52884 9.24621 6.50697 9.81157 6.43027 10.3805 6.45522 10.4717 6.45522 11.0281 6.58185 11.1169 6.60372 11.6412 6.82842 11.7222 6.87086 12.1984 7.18474 12.2666 7.24537 12.6786 7.63952 13.0139 8.1014 13.0659 8.17654 13.312 8.69018 13.3445 8.77573 13.4961 9.32502 13.5478 9.89215 13.5588 9.98268 13.5071 10.5516 13.4961 10.6423 13.3445 11.1916 13.312 11.2772 13.0659 11.7908 12.7307 12.2527 12.6787 12.3279 12.2667 12.722 12.1985 12.7827 11.7223 13.0965 11.6413 13.139 11.117 13.3637 11.0282 13.3856 10.4718 13.5122 9.90289 13.5372 9.81167 13.5372 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 58.4612 41.0687 59.3817 40.8579 60.1627 40.6157 60.3998 40.5336 61.1429 40.1884 61.3607 40.0626 62.0494 39.6227 62.239 39.4583 62.8634 38.9294 63.5107 38.2956 63.5623 38.2301 64.0304 37.45 64.1456 37.2267 64.5147 36.4967 64.7833 35.7239 64.8541 35.483 65.0172 34.6822 65.0411 34.4321 65.0955 33.6148 65.0411 32.7999 65.0171 32.5503 64.854 31.7486 64.7832 31.5077 64.5146 30.7349 64.3995 30.5116 64.0303 29.7816 63.562 29.0014 63.5106 28.9362 62.8632 28.3026 62.6738 28.138 62.0492 27.609 61.3603 27.1698 61.1428 27.0442 60.3995 26.6989 60.1627 26.6169 59.3911 26.3212 59.3089 26.3095 58.3784 26.1513 57.508 26.1762 57.2574 26.1882 56.4433 26.2706 56.1994 26.3295 55.4034 26.5191 54.6403 26.8124 54.4123 26.9166 53.6952 27.3105 53.4907 27.4559 52.8315 27.9404 52.1252 28.5478 52.0679 28.608 51.5624 29.3333 51.4265 29.5447 50.9588 30.2299 50.9279 30.3071 50.5587 31.1754 50.3808 32.0246 50.3332 32.2711 50.2245 33.081 50.2245 33.3321 50.2245 34.1511 50.3333 34.9626 50.3808 35.2092 50.5983 35.9984 50.6917 36.2318 51.0097 36.9848 51.4266 37.6876 51.5626 37.8988 52.0701 38.5413 52.2434 38.7232 52.8317 39.2916 53.0364 39.4373 53.6955 39.9217 54.4124 40.3163 54.6407 40.4204 55.4036 40.7128 55.6478 40.7722 56.4436 40.9617 57.2575 41.044 57.5084 41.0558 58.3786 41.0805 z M 56.8979 37.0927 56.809 37.0708 56.2669 36.8943 55.764 36.625 55.6829 36.5827 55.2371 36.2278 55.1689 36.167 54.7943 35.7372 54.7424 35.6621 54.4499 35.1725 54.2483 34.6384 54.2159 34.5528 54.1142 33.9911 54.1031 33.9003 54.1031 33.3314 54.2048 32.7696 54.2158 32.6791 54.4173 32.1467 54.4498 32.0612 54.7423 31.5699 54.7943 31.4947 55.1688 31.0649 55.6146 30.71 55.6829 30.6494 55.7638 30.6069 56.2668 30.3376 56.8089 30.161 56.8977 30.1391 57.4631 30.0633 58.032 30.0883 58.1232 30.0883 58.6796 30.214 58.7684 30.2359 59.2927 30.4606 59.3765 30.5056 59.8527 30.8195 59.9181 30.8776 60.3301 31.2717 60.6654 31.7336 60.7174 31.8087 60.9635 32.3224 60.996 32.4079 61.1476 32.9572 61.1993 33.5243 61.2104 33.6149 61.1586 34.1838 61.1476 34.2745 60.996 34.8238 60.9635 34.9094 60.7174 35.423 60.3822 35.8849 60.3302 35.9601 59.9182 36.3542 59.85 36.415 59.3738 36.7288 59.2928 36.7712 58.7685 36.9959 58.6797 37.0178 58.1233 37.1453 57.5544 37.1703 57.4632 37.1703 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 34.5913 41.0691 35.5118 40.8583 36.2928 40.6161 36.53 40.534 37.273 40.1888 37.4908 40.063 38.1795 39.6231 38.3691 39.4587 38.9935 38.9298 39.6408 38.296 39.6924 38.2305 40.1605 37.4504 40.2757 37.2271 40.6448 36.4971 40.9134 35.7243 40.9842 35.4834 41.1473 34.6826 41.1712 34.4325 41.2256 33.6152 41.1712 32.8003 41.1472 32.5507 40.9841 31.749 40.9133 31.5081 40.6447 30.7353 40.5295 30.5121 40.1604 29.782 39.6921 29.0019 39.6407 28.9366 38.9933 28.303 38.8039 28.1384 38.1793 27.6094 37.4904 27.1702 37.2729 27.0446 36.5296 26.6993 36.2928 26.6173 35.5212 26.3216 35.439 26.3099 34.5085 26.1517 33.6381 26.1766 33.3875 26.1886 32.5734 26.271 32.3295 26.3299 31.5335 26.5195 30.7704 26.8128 30.5424 26.917 29.8255 27.3109 29.621 27.4563 28.9618 27.9408 28.2555 28.5482 28.1982 28.6084 27.6927 29.3337 27.5568 29.5452 27.0891 30.2303 27.0581 30.3075 26.689 31.1758 26.5111 32.025 26.4635 32.2715 26.3548 33.0814 26.3548 33.3325 26.3548 34.1515 26.4636 34.963 26.5111 35.2096 26.7286 35.9988 26.822 36.2322 27.14 36.9852 27.5569 37.688 27.6929 37.8992 28.2004 38.5418 28.3737 38.7236 28.962 39.292 29.1667 39.4377 29.8258 39.9221 30.5425 40.3167 30.7708 40.4208 31.5337 40.7132 31.7779 40.7726 32.5737 40.9621 33.3876 41.0444 33.6385 41.0563 34.5087 41.081 z M 33.028 37.0931 32.9391 37.0712 32.397 36.8947 31.8941 36.6254 31.813 36.5831 31.3672 36.2282 31.299 36.1674 30.9245 35.7376 30.8725 35.6625 30.58 35.1729 30.3784 34.6388 30.346 34.5533 30.2443 33.9915 30.2332 33.9007 30.2332 33.3318 30.3349 32.77 30.3459 32.6795 30.5474 32.1471 30.5799 32.0616 30.8724 31.5703 30.9244 31.4951 31.2989 31.0653 31.7447 30.7104 31.813 30.6499 31.8939 30.6073 32.3969 30.338 32.939 30.1614 33.0278 30.1396 33.5932 30.0638 34.1621 30.0887 34.2533 30.0887 34.8097 30.2144 34.8985 30.2363 35.4228 30.461 35.5066 30.506 35.9828 30.8199 36.0482 30.8779 36.4602 31.2721 36.7955 31.734 36.8475 31.8091 37.0936 32.3228 37.1261 32.4083 37.2777 32.9576 37.3294 33.5247 37.3405 33.6153 37.2887 34.1842 37.2777 34.2749 37.1261 34.8242 37.0936 34.9098 36.8475 35.4234 36.5123 35.8853 36.4603 35.9605 36.0483 36.3546 35.9801 36.4154 35.5039 36.7292 35.4229 36.7716 34.8986 36.9963 34.8098 37.0182 34.2534 37.1457 33.6845 37.1707 33.5933 37.1707 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 10.8101 41.0695 11.7306 40.8587 12.5116 40.6165 12.7488 40.5344 13.4918 40.1892 13.7096 40.0634 14.3983 39.6235 14.5879 39.4591 15.2123 38.9302 15.8596 38.2964 15.9112 38.2309 16.3793 37.4508 16.4945 37.2275 16.8636 36.4975 17.1322 35.7247 17.2029 35.4838 17.3661 34.683 17.39 34.4329 17.4444 33.6156 17.39 32.8008 17.366 32.5511 17.2029 31.7494 17.1321 31.5085 16.8635 30.7357 16.7483 30.5125 16.3792 29.7824 15.9109 29.0023 15.8595 28.937 15.2121 28.3034 15.0227 28.1388 14.3981 27.6098 13.7092 27.1706 13.4917 27.045 12.7484 26.6997 12.5116 26.6177 11.74 26.3221 11.6578 26.3103 10.7273 26.1521 9.85691 26.177 9.60633 26.189 8.79219 26.2714 8.54831 26.3303 7.75229 26.5199 6.98925 26.8133 6.76118 26.9174 6.04429 27.3113 5.8398 27.4567 5.1806 27.9412 4.47432 28.5486 4.41697 28.6088 3.91152 29.3341 3.77563 29.5455 3.30786 30.2308 3.27695 30.3079 2.90783 31.1762 2.72987 32.0254 2.68233 32.2719 2.57359 33.0818 2.5736 33.3329 2.57361 34.1519 2.68238 34.9634 2.72993 35.21 2.94745 35.9993 3.0408 36.2326 3.35883 36.9856 3.7757 37.6884 3.9117 37.8996 4.41919 38.5422 4.59255 38.724 5.18077 39.2924 5.3855 39.4381 6.04456 39.9225 6.76128 40.3171 6.98963 40.4212 7.75247 40.7137 7.99669 40.773 8.79248 40.9625 9.60639 41.0449 9.85732 41.0567 10.7275 41.0814 z M 9.24676 37.0935 9.15793 37.0716 8.61579 36.8951 8.11288 36.6258 8.03186 36.5835 7.58601 36.2286 7.51777 36.1678 7.14325 35.738 7.09126 35.6629 6.79878 35.1733 6.59725 34.6392 6.56476 34.5537 6.46309 33.9919 6.45204 33.9011 6.45202 33.3322 6.55367 32.7704 6.56472 32.6799 6.76624 32.1476 6.79872 32.062 7.0912 31.5707 7.14317 31.4955 7.51769 31.0657 7.96355 30.7108 8.03175 30.6503 8.11273 30.6077 8.61567 30.3384 9.15784 30.1618 9.24662 30.14 9.81198 30.0641 10.3809 30.0891 10.4721 30.0891 11.0285 30.2148 11.1173 30.2367 11.6416 30.4614 11.7254 30.5065 12.2016 30.8203 12.267 30.8784 12.679 31.2725 13.0143 31.7344 13.0663 31.8096 13.3124 32.3232 13.3449 32.4087 13.4965 32.958 13.5482 33.5251 13.5593 33.6157 13.5075 34.1846 13.4965 34.2753 13.3449 34.8246 13.3124 34.9102 13.0663 35.4238 12.7311 35.8857 12.6791 35.9609 12.2671 36.355 12.1989 36.4158 11.7227 36.7296 11.6417 36.772 11.1174 36.9967 11.0286 37.0186 10.4722 37.1461 9.9033 37.1711 9.81209 37.1711 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
</g>
<g id="layer10" slic3r:z="4.5000" slic3r:slice-z="4.3000" slic3r:layer-height="0.4000">
		<path d="M 57.6559 17.3554 58.39 17.3303 58.6399 17.2885 59.3622 17.1673 59.6039 17.092 60.304 16.8749 60.5341 16.7682 61.2002 16.4595 61.4137 16.3234 62.0309 15.9291 62.2246 15.7652 62.7842 15.2913 62.9539 15.1032 63.4455 14.5599 63.589 14.3509 64.0037 13.7457 64.1186 13.5192 64.4491 12.8654 64.5325 12.6252 64.7729 11.9332 64.8233 11.6844 64.9693 10.9675 64.9861 10.7132 65.0347 9.98178 65.0179 9.72788 64.9692 8.99808 64.9187 8.74875 64.7728 8.0324 64.6891 7.79133 64.4488 7.10023 64.3335 6.8727 64.0034 6.22004 63.859 6.00977 63.4451 5.40586 63.2742 5.21657 62.7838 4.67464 62.5886 4.50952 62.0305 4.03688 61.8152 3.89914 61.1998 3.50607 60.9675 3.3989 60.3036 3.09127 60.0596 3.01522 59.3619 2.79888 59.1094 2.75663 58.3897 2.63596 58.134 2.62751 57.4026 2.60251 57.1485 2.62787 56.4214 2.70147 56.1727 2.76062 55.4618 2.9299 55.2231 3.02178 54.5416 3.28378 54.3172 3.40679 53.6767 3.75862 53.4708 3.91008 52.8819 4.34293 52.6984 4.52069 52.1727 5.03018 52.0145 5.23053 51.5609 5.80342 51.4307 6.02316 51.058 6.65214 50.9585 6.88649 50.6741 7.55981 50.6068 7.80559 50.4122 8.51149 50.3785 8.76395 50.2813 9.48919 50.2813 9.7441 50.2812 10.4769 50.3149 10.729 50.4122 11.4546 50.4794 11.6997 50.6741 12.4063 50.7732 12.6397 51.0579 13.314 51.1874 13.5326 51.5608 14.1628 51.718 14.3619 52.1726 14.9375 52.3548 15.114 52.8819 15.6233 53.0861 15.7736 53.6767 16.2077 53.8991 16.3296 54.5416 16.6825 54.778 16.7736 55.4619 17.0364 55.7082 17.095 56.4216 17.2649 56.6731 17.29 57.4028 17.3638 z M 57.314 13.57 56.8461 13.5066 56.6789 13.4526 56.2303 13.3065 56.0751 13.2226 55.6589 12.9998 55.521 12.8902 55.1521 12.5966 55.0361 12.4638 54.7263 12.1083 54.6355 11.9566 54.3936 11.551 54.3316 11.3856 54.1649 10.9446 54.1334 10.7712 54.0493 10.3067 54.0493 10.1301 54.0493 9.65976 54.0808 9.48575 54.1648 9.02134 54.2269 8.85567 54.3934 8.41491 54.4844 8.26285 54.7261 7.85755 54.8424 7.72437 55.1519 7.3692 55.2904 7.25915 55.6587 6.96592 55.8146 6.88165 56.2301 6.65916 56.3981 6.60436 56.846 6.4585 57.0214 6.4348 57.4884 6.37144 57.6654 6.37934 58.1354 6.39996 58.3082 6.43947 58.7678 6.54406 58.9306 6.61359 59.3637 6.79921 59.5112 6.89718 59.9045 7.15649 60.0325 7.27864 60.3728 7.60428 60.4771 7.74745 60.7541 8.12912 60.8309 8.28855 61.0343 8.71302 61.0811 8.88343 61.2064 9.33743 61.2222 9.51302 61.2649 9.98184 61.2492 10.1579 61.2064 10.6282 61.1596 10.7984 61.0343 11.2527 60.9576 11.4117 60.7541 11.8365 60.6501 11.9793 60.3728 12.3613 60.2453 12.4836 59.9045 12.8096 59.7577 12.9067 59.3637 13.1663 59.2017 13.2356 58.7678 13.4215 58.5959 13.4608 58.1355 13.5656 57.9593 13.5735 57.4885 13.5941 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 33.786 17.3558 34.5201 17.3307 34.77 17.2889 35.4923 17.1677 35.7339 17.0924 36.4341 16.8753 36.6642 16.7686 37.3303 16.4599 37.5438 16.3238 38.161 15.9295 38.3547 15.7656 38.9143 15.2917 39.084 15.1037 39.5756 14.5603 39.7191 14.3513 40.1338 13.7461 40.2487 13.5196 40.5792 12.8658 40.6626 12.6256 40.903 11.9336 40.9534 11.6848 41.0994 10.9679 41.1162 10.7136 41.1648 9.98219 41.148 9.72829 41.0993 8.9985 41.0488 8.74916 40.9029 8.03282 40.8191 7.79174 40.5789 7.10063 40.4635 6.8731 40.1335 6.22045 39.9891 6.01017 39.5752 5.40627 39.4043 5.21697 38.9139 4.67504 38.7187 4.50992 38.1606 4.03729 37.9453 3.89955 37.3299 3.50648 37.0976 3.39932 36.4337 3.09168 36.1897 3.01564 35.492 2.79929 35.2395 2.75704 34.5198 2.63636 34.2641 2.62792 33.5327 2.60291 33.2786 2.62827 32.5515 2.70187 32.3028 2.76103 31.5919 2.93031 31.3532 3.02219 30.6717 3.28419 30.4473 3.40719 29.8069 3.75903 29.6011 3.91049 29.0122 4.34333 28.8287 4.5211 28.303 5.03058 28.1448 5.23093 27.6912 5.80383 27.561 6.02357 27.1883 6.65255 27.0888 6.88691 26.8044 7.56022 26.7371 7.80601 26.5425 8.51191 26.5088 8.76437 26.4116 9.48959 26.4116 9.74451 26.4115 10.4773 26.4451 10.7294 26.5425 11.455 26.6097 11.7001 26.8044 12.4067 26.9035 12.6401 27.1882 13.3144 27.3177 13.533 27.6911 14.1632 27.8483 14.3623 28.3029 14.9379 28.4851 15.1144 29.0122 15.6238 29.2163 15.774 29.8069 16.2081 30.0293 16.33 30.6717 16.6829 30.9081 16.774 31.592 17.0369 31.8383 17.0954 32.5517 17.2653 32.8032 17.2904 33.5329 17.3642 z M 33.4441 13.5704 32.9762 13.507 32.809 13.453 32.3604 13.3069 32.2052 13.223 31.789 13.0002 31.6511 12.8906 31.2822 12.597 31.1662 12.4643 30.8564 12.1087 30.7656 11.957 30.5237 11.5514 30.4617 11.386 30.295 10.945 30.2635 10.7716 30.1794 10.3071 30.1794 10.1305 30.1794 9.66017 30.2109 9.48616 30.2949 9.02175 30.357 8.85608 30.5235 8.41533 30.6145 8.26326 30.8562 7.85795 30.9725 7.72478 31.282 7.36961 31.4205 7.25955 31.7888 6.96632 31.9447 6.88205 32.3602 6.65957 32.5282 6.60478 32.9761 6.45891 33.1515 6.4352 33.6185 6.37184 33.7955 6.37974 34.2655 6.40037 34.4383 6.43988 34.8979 6.54447 35.0607 6.614 35.4938 6.79962 35.6413 6.89758 36.0346 7.1569 36.1626 7.27905 36.5029 7.60468 36.6072 7.74786 36.8842 8.12953 36.961 8.28896 37.1644 8.71342 37.2112 8.88383 37.3365 9.33784 37.3523 9.51343 37.395 9.98225 37.3793 10.1583 37.3365 10.6287 37.2897 10.7988 37.1644 11.2531 37.0877 11.4121 36.8842 11.8369 36.7803 11.9797 36.5029 12.3618 36.3754 12.484 36.0346 12.8101 35.8878 12.9071 35.4938 13.1668 35.3318 13.236 34.8979 13.4219 34.726 13.4612 34.2656 13.566 34.0894 13.5739 33.6186 13.5945 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 10.0048 17.3562 10.7389 17.3311 10.9888 17.2893 11.7111 17.1681 11.9528 17.0928 12.6529 16.8757 12.883 16.769 13.5491 16.4603 13.7626 16.3242 14.3798 15.9299 14.5735 15.7661 15.1331 15.2921 15.3028 15.1041 15.7944 14.5608 15.9379 14.3517 16.3527 13.7465 16.4675 13.52 16.798 12.8662 16.8814 12.626 17.1218 11.934 17.1722 11.6852 17.3182 10.9683 17.335 10.7141 17.3836 9.98259 17.3668 9.72869 17.3181 8.99891 17.2676 8.74957 17.1217 8.03322 17.038 7.79215 16.7977 7.10104 16.6824 6.87351 16.3523 6.22086 16.2079 6.01059 15.794 5.40667 15.6231 5.21738 15.1327 4.67545 14.9375 4.51034 14.3794 4.03771 14.1641 3.89997 13.5487 3.50689 13.3164 3.39973 12.6524 3.09209 12.4085 3.01605 11.7108 2.7997 11.4583 2.75745 10.7386 2.63678 10.4829 2.62833 9.75146 2.60332 9.49739 2.62868 8.77033 2.70228 8.52157 2.76143 7.81067 2.93071 7.57198 3.02259 6.89047 3.28459 6.66611 3.4076 6.02576 3.75943 5.81994 3.91089 5.23103 4.34374 5.04746 4.52151 4.52177 5.03099 4.36359 5.23134 3.90998 5.80424 3.77982 6.02398 3.40713 6.65295 3.30759 6.8873 3.02323 7.56063 2.95586 7.80642 2.76132 8.51232 2.72766 8.76478 2.63036 9.49 2.63035 9.74492 2.63034 10.4777 2.66395 10.7298 2.76127 11.4554 2.82845 11.7005 3.02316 12.4071 3.1223 12.6405 3.40704 13.3148 3.53653 13.5334 3.9099 14.1636 4.06707 14.3627 4.52169 14.9383 4.70393 15.1148 5.23098 15.6242 5.43512 15.7744 6.02574 16.2085 6.24812 16.3304 6.89052 16.6834 7.12695 16.7744 7.81076 17.0373 8.05708 17.0958 8.77049 17.2657 9.022 17.2908 9.7517 17.3646 z M 9.66286 13.5708 9.19505 13.5074 9.02781 13.4534 8.57918 13.3073 8.42396 13.2234 8.00782 13.0006 7.86989 12.891 7.50099 12.5974 7.38504 12.4647 7.07521 12.1091 6.98441 11.9574 6.74245 11.5518 6.68049 11.3864 6.5138 10.9454 6.48228 10.7721 6.3982 10.3075 6.39819 10.131 6.39816 9.66058 6.42969 9.48657 6.5137 9.02216 6.57576 8.85649 6.74231 8.41572 6.83333 8.26366 7.07502 7.85836 7.19133 7.72519 7.50079 7.37002 7.63926 7.25997 8.00762 6.96673 8.16351 6.88246 8.57898 6.65997 8.74702 6.60518 9.19487 6.45933 9.37031 6.43562 9.8373 6.37225 10.0143 6.38015 10.4843 6.40077 10.6571 6.44028 11.1167 6.54488 11.2795 6.61441 11.7126 6.80003 11.8601 6.89799 12.2534 7.15729 12.3814 7.27945 12.7218 7.6051 12.826 7.74827 13.103 8.12993 13.1798 8.28936 13.3832 8.71383 13.43 8.88424 13.5553 9.33825 13.5711 9.51385 13.6138 9.98266 13.5981 10.1587 13.5553 10.6291 13.5085 10.7993 13.3832 11.2535 13.3065 11.4126 13.103 11.8373 12.9991 11.9801 12.7217 12.3622 12.5942 12.4844 12.2534 12.8105 12.1066 12.9075 11.7126 13.1672 11.5506 13.2364 11.1167 13.4223 10.9448 13.4616 10.4843 13.5664 10.3082 13.5743 9.83744 13.595 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 57.6563 40.9884 58.3904 40.9633 58.6403 40.9215 59.3626 40.8011 59.6043 40.7258 60.3044 40.5086 60.5345 40.4019 61.2006 40.0925 61.4141 39.9564 62.0313 39.5621 62.225 39.3982 62.7846 38.9243 62.9543 38.7365 63.4459 38.1932 63.5894 37.9839 64.0042 37.3787 64.119 37.1522 64.4495 36.4984 64.5329 36.2582 64.7734 35.5662 64.8237 35.3176 64.9697 34.6007 64.9865 34.3462 65.0352 33.6148 65.0183 33.3609 64.9696 32.6318 64.9191 32.3825 64.7732 31.6654 64.6894 31.4243 64.4492 30.7332 64.3339 30.5057 64.0038 29.853 63.8594 29.643 63.4455 29.0391 63.2746 28.8496 62.7842 28.3076 62.589 28.1425 62.0309 27.6699 61.8156 27.5321 61.2002 27.1398 60.9679 27.0327 60.304 26.7243 60.06 26.6482 59.3623 26.4326 59.1098 26.3904 58.3901 26.2697 58.1344 26.2612 57.403 26.2355 57.1489 26.2609 56.4218 26.3345 56.1731 26.3939 55.4622 26.5632 55.2235 26.6548 54.542 26.9168 54.3176 27.0398 53.6771 27.3916 53.4712 27.5431 52.8823 27.9759 52.6988 28.1537 52.1731 28.6632 52.0149 28.8638 51.5613 29.4367 51.4311 29.6564 51.0584 30.2861 50.9589 30.5202 50.6745 31.1928 50.6072 31.4386 50.4126 32.1452 50.379 32.3977 50.2817 33.1222 50.2817 33.3771 50.2816 34.1099 50.3153 34.362 50.4126 35.0883 50.4798 35.3334 50.6745 36.04 50.7736 36.2734 51.0584 36.9477 51.1878 37.1666 51.5612 37.796 51.7184 37.9949 52.173 38.5705 52.3552 38.747 52.8823 39.2563 53.0865 39.4066 53.6771 39.8407 53.8995 39.9629 54.542 40.3165 54.7784 40.4075 55.4623 40.6697 55.7086 40.728 56.422 40.8979 56.6735 40.9232 57.4032 40.9971 z M 57.3144 37.2038 56.8466 37.1396 56.6793 37.0856 56.2307 36.9395 56.0755 36.8556 55.6593 36.6328 55.5214 36.5232 55.1525 36.2296 55.0365 36.0968 54.7267 35.7413 54.6359 35.5896 54.394 35.1847 54.332 35.0193 54.1653 34.5776 54.1338 34.4042 54.0497 33.9397 54.0497 33.7631 54.0497 33.2928 54.0812 33.1187 54.1652 32.6543 54.2273 32.4887 54.3938 32.0487 54.4848 31.8966 54.7265 31.4905 54.8428 31.3574 55.1523 31.0022 55.2908 30.8921 55.6591 30.5989 55.815 30.5146 56.2305 30.2922 56.3985 30.2374 56.8464 30.0915 57.0218 30.0678 57.4888 30.0052 57.6658 30.0131 58.1358 30.0337 58.3086 30.0732 58.7682 30.1771 58.931 30.2466 59.3641 30.4322 59.5116 30.5302 59.9049 30.7895 60.0329 30.9116 60.3733 31.2373 60.4775 31.3807 60.7545 31.7624 60.8313 31.9216 61.0347 32.346 61.0815 32.5164 61.2068 32.9704 61.2226 33.146 61.2653 33.6148 61.2496 33.7909 61.2068 34.2613 61.16 34.4314 61.0347 34.8857 60.958 35.0447 60.7545 35.4695 60.6506 35.6125 60.3732 35.9946 60.2457 36.1166 59.9049 36.4426 59.7581 36.5397 59.3641 36.7994 59.2021 36.8686 58.7682 37.0545 58.5963 37.0941 58.1359 37.1996 57.9597 37.2072 57.4889 37.2279 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 33.7864 40.9888 34.5205 40.9637 34.7704 40.9219 35.4927 40.8015 35.7344 40.7262 36.4345 40.509 36.6646 40.4023 37.3307 40.0929 37.5442 39.9568 38.1614 39.5625 38.3551 39.3987 38.9147 38.9247 39.0844 38.7369 39.576 38.1936 39.7195 37.9843 40.1343 37.3791 40.2491 37.1526 40.5796 36.4988 40.663 36.2586 40.9034 35.5666 40.9538 35.318 41.0998 34.6012 41.1166 34.3466 41.1653 33.6152 41.1484 33.3613 41.0997 32.6322 41.0492 32.3829 40.9033 31.6658 40.8195 31.4247 40.5793 30.7336 40.464 30.5061 40.1339 29.8534 39.9895 29.6434 39.5756 29.0395 39.4047 28.85 38.9143 28.308 38.7191 28.1429 38.161 27.6703 37.9457 27.5326 37.3303 27.1402 37.098 27.0331 36.4341 26.7247 36.1901 26.6486 35.4924 26.433 35.2399 26.3908 34.5202 26.2701 34.2645 26.2617 33.5331 26.2359 33.279 26.2613 32.5519 26.3349 32.3032 26.3943 31.5923 26.5636 31.3536 26.6552 30.6721 26.9172 30.4477 27.0402 29.8074 27.392 29.6015 27.5435 29.0126 27.9763 28.8291 28.1541 28.3034 28.6636 28.1452 28.8642 27.6916 29.4371 27.5614 29.6568 27.1887 30.2865 27.0892 30.5206 26.8048 31.1932 26.7375 31.439 26.5429 32.1456 26.5093 32.3981 26.412 33.1226 26.412 33.3775 26.4119 34.1103 26.4456 34.3624 26.5429 35.0887 26.6101 35.3339 26.8048 36.0404 26.9039 36.2739 27.1887 36.9481 27.3181 37.167 27.6915 37.7964 27.8487 37.9953 28.3033 38.5709 28.4855 38.7474 29.0126 39.2567 29.2167 39.407 29.8073 39.8411 30.0297 39.9633 30.6721 40.3169 30.9085 40.408 31.5924 40.6701 31.8387 40.7284 32.5521 40.8983 32.8036 40.9236 33.5333 40.9975 z M 33.4445 37.2042 32.9767 37.14 32.8094 37.086 32.3608 36.9399 32.2056 36.856 31.7894 36.6332 31.6515 36.5236 31.2826 36.23 31.1666 36.0973 30.8568 35.7417 30.766 35.59 30.5241 35.1851 30.4621 35.0197 30.2954 34.578 30.2639 34.4046 30.1798 33.9401 30.1798 33.7635 30.1798 33.2932 30.2113 33.1192 30.2953 32.6548 30.3574 32.4891 30.5239 32.0491 30.6149 31.897 30.8566 31.4909 30.9729 31.3578 31.2824 31.0026 31.4209 30.8926 31.7892 30.5993 31.9451 30.515 32.3606 30.2926 32.5286 30.2378 32.9765 30.0919 33.1519 30.0682 33.6189 30.0056 33.7959 30.0135 34.2659 30.0341 34.4387 30.0736 34.8983 30.1775 35.0611 30.247 35.4942 30.4326 35.6417 30.5306 36.035 30.7899 36.163 30.912 36.5034 31.2377 36.6076 31.3811 36.8846 31.7628 36.9614 31.922 37.1648 32.3464 37.2116 32.5168 37.3369 32.9708 37.3527 33.1464 37.3954 33.6153 37.3797 33.7913 37.3369 34.2617 37.2901 34.4318 37.1648 34.8861 37.0881 35.0451 36.8846 35.4699 36.7807 35.6129 36.5033 35.995 36.3758 36.117 36.035 36.443 35.8882 36.5401 35.4942 36.7998 35.3322 36.869 34.8983 37.0549 34.7264 37.0945 34.266 37.2 34.0898 37.2076 33.619 37.2283 z " style="fill: white; stroke: black; stroke-width: 0; fill-type: evenodd" slic3r:area="-0.0021" />
		<path d="M 10.0052 40.9893 10.7393 40.9641 10.9892 40.9223 11.7115 40.8019 11.9532 40.7266 12.6533 40.5094 12.8834 40.4027 

Notice that in the last layer, the last entry is incomplete. The file is also lacking the </g></svg> that should be there.
I tried with different file sizes and formats, which gave me the same results.

I noticed that in the DLP / SLA Preview window (where we hit Export SVG), the whole file is displayed correctly, including the last layer. This indicates that this isn't an issue with the Slicing process itself, but with how the file is saved.
When I try to load the saved SVG into SVG Viewer it doesn't work. Only after I delete the incomplete path and add closing tags it is displayed - but then obviously lacking the last shape in the last layer.

Any ideas on what could cause this and how to fix it are appreciated.

@lordofhyphens

This comment has been minimized.

Member

lordofhyphens commented Feb 20, 2018

I know that the slicing setup for dlp/sla crashes if you use infll less than 100%.

DLP is more experimental with Slic3r unfortunately. @alexrj knows it best at this point.

Q: does it still have a problem when sliced from the command line?

@N4rki

This comment has been minimized.

N4rki commented Feb 21, 2018

Here is my source file (3MF):
Train_Engine.zip

Slicing to SVG through the CLI only version (slic3r.exe Train_Engine.3mf --export-svg --layer-height 0.2) produces another bug: The created svg has only empty 'dummy' layers, except for the very last layer, which is seems to be generated correctly. This happens for STL and 3MF alike. Here's an example:
Train_EngineCLI.3mf.svg.zip.
I assume that's due to incomplete porting to C++ and would classify it as not really relevant at this point, as the CLI only version without Perl is barely used.

Slicing through the normal console version via Slic3r-console.exe Train_Engine.3mf --export-svg --layer-height 0.2 uses as far as I am concerned the same algorithm as File -> Slice to SVG in the GUI.
This is because the output is not as stated in this issue, but resembles the output of #4310. So not the same problem, but still a problem :)
SVG output: Train_Engine.zip

The way I understood it is that slicing to SVG via File -> Slice to SVG , as well as using Slic3r-console.exe is done in the perl code (namely print.pm). Whereas going via Window -> DLP Projector -> OK -> Export SVG... writes it in SLAPrint.cpp. I don't know if the same goes for the slicing itself or if these classes just handle drawing the SVG.

What I want to achieve is slicing a multimaterial 3MF file to SVG while being able to distinguish different materials in the SVG. If that distinction is by the color of each shape in the svg or by some id doesn't really matter. What's important though is that Slic3r produces a complete SVG and that the positioning is correct. So to even start, I either have to fix #4311 or fix #4310, because atm neither does both right.

Can you give an indication on what could be easier to correct? Unfortunately I still couldn't find a good way to debug the C++ Code that's initiated by Perl. The eclipse (with EPIC plugin) debugger doesn't step into any C++ function calls.

@lordofhyphens

This comment has been minimized.

Member

lordofhyphens commented Feb 25, 2018

I'd much rather fix it in SLAPrint.cpp.

@lordofhyphens

This comment has been minimized.

Member

lordofhyphens commented Feb 25, 2018

There an unrelated bug in which if the loaded config is set to auto infill width (which is the default) the infill generation crashes Slic3r with a division by 0. I've hotfixed that (defaults min spacing in that situation to 0.3mm instead).

@lordofhyphens

This comment has been minimized.

Member

lordofhyphens commented Feb 25, 2018

So there's a UI deficiency here I think at minimum. In my testing it is generating the entire SVG just not when you think it would (aka the UI lets you do stuff).

@lordofhyphens

This comment has been minimized.

Member

lordofhyphens commented Feb 25, 2018

With some further experimentation, if you close Slic3r it finishes writing the file (probably because the buffers aren't being flushed).

@lordofhyphens

This comment has been minimized.

Member

lordofhyphens commented Feb 25, 2018

Actually closing the file handle was left out during write_svg().

I've added a fflush() and a fclose(). While I'd usually rather do the IO in a C++ iostreams manner, the fprintf() method used here is easier to see what is going on.

@lordofhyphens lordofhyphens added this to the 1.3.0 milestone Feb 25, 2018

@N4rki

This comment has been minimized.

N4rki commented Feb 27, 2018

Thanks @lordofhyphens! Seriously, the work you do for this community is exceptional. Kudos for helping everybody out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment