RomRider / klipper-FastGyroidInfill

A set of postprocessing scripts and macro to accelerate the gyroid infill print speed with Klipper
MIT License
124 stars 26 forks source link

Dupplicating an item in cura, for each layers, the first infill is slower than the others #4

Open themaskedbear opened 2 years ago

themaskedbear commented 2 years ago

Hi, First, thank you for your work !

I'm encountering an issue. In cura, I have inserted a stl and I have duplicated it. I inserted another stl and I multiplied it by 3.

When printing, I have noticed that the first infill was slower than the others

In the generated gcode I have seen that for each layer, the first _USE_INFILL_SQV is followed by _USE_NORMAL_SQV 2 lines lower.

Bellow an extract of the gcode file for the Layer 4 (can be read like that LineNumberInTheGCodeFile TheLineContent) 22849-G0 X133.38 Y93.288 22850-G0 X111.797 Y13.815 22851-;TIME_ELAPSED:1491.242617 22852:;LAYER:4 22853-;TYPE:FILL 22854:_USE_INFILL_SQV 22855:;MESH:Spool_holder_body.stl 22856:_USE_NORMAL_SQV 22857-G1 F1500 E3396.51827 22858-G1 F10800 X111.879 Y13.755 E3396.52165 22859-G1 X112.28 Y13.569 E3396.53635

26741-G1 X132.468 Y13.1 E3488.21096 26742-G0 F9000 X132.437 Y13.5 26743-G1 F1500 E3481.71096 26744:;MESH:Spool_holder_body.stl(1) 26745-G0 F9000 X133.38 Y15.08 26746-G0 X136.12 Y15.08 26747-G0 X136.26 Y15.08 26748-;TYPE:FILL 26749:_USE_INFILL_SQV 26750-G1 F1500 E3488.21096 26751-G1 F10800 X136.34 Y15.016 E3488.21437 26752-G1 X136.741 Y14.5 E3488.23611

30575-G0 F9000 X136.759 Y13.242 30576-G0 X136.603 Y12.762 30577-;TYPE:WALL-OUTER 30578:_USE_NORMAL_SQV 30579-G1 F4500 X137.002 Y12.7 E3547.86313 30580-G1 X156.998 Y12.7 E3548.5282 30581-G1 X157.399 Y12.763 E3548.5417

30629-G1 X136.729 Y13.147 E3579.83717 30630-G0 F9000 X136.851 Y13.534 30631-G1 F1500 E3573.33717 30632:;MESH:6004_Spool_holder_bearing_center_rod.stl(3) 30633-G0 F9000 X157.88 Y113.638 30634-G0 X159.165 Y113.638 30635-G0 X164.337 Y113.606 30636-G0 X165.236 Y114.566 30637-G0 X168.16 Y113.638 30638-;TYPE:FILL 30639:_USE_INFILL_SQV 30640-G1 F1500 E3579.83717 30641-G1 F10800 X168.019 Y113.819 E3579.8448 30642-G1 X167.618 Y114.267 E3579.8648

30722-G0 F9000 X167.108 Y113.835 30723-G0 X166.963 Y113.357 30724-;TYPE:WALL-OUTER 30725:_USE_NORMAL_SQV 30726-G1 F4500 X167.456 Y113.217 E3580.80788 30727-G1 X167.973 Y113.101 E3580.8255 30728-G1 X168.494 Y113.014 E3580.84307

31089-G1 X167.562 Y115.263 E3587.81074 31090-G0 F9000 X167.444 Y114.881 31091-G1 F1500 E3581.31074 31092:;MESH:6004_Spool_holder_bearing_center_rod.stl(2) 31093-G0 F9000 X164.943 Y116.639 31094-G0 X163.894 Y117.697 31095-G0 X163.068 Y118.938

31104-G0 X165.929 Y135.265 31105-G0 X165.244 Y135.801 31106-;TYPE:FILL 31107:_USE_INFILL_SQV 31108-G1 F1500 E3587.81074 31109-G1 F10800 X165.613 Y136.275 E3587.83072 31110-G1 X166.014 Y136.723 E3587.85071

31185-G0 F9000 X167.353 Y134.817 31186-G0 X167.227 Y134.333 31187-;TYPE:WALL-OUTER 31188:_USE_NORMAL_SQV 31189-G1 F4500 X167.749 Y134.2 E3588.72099 31190-G1 X168.268 Y134.101 E3588.73856 31191-G1 X168.798 Y134.029 E3588.75635

31556-G1 X167.7 Y136.277 E3595.72302 31557-G0 F9000 X167.588 Y135.894 31558-G1 F1500 E3589.22302 31559:;MESH:6004_Spool_holder_bearing_center_rod.stl 31560-G0 F9000 X165.06 Y137.609 31561-G0 X163.993 Y138.65 31562-G0 X163.148 Y139.877

31571-G0 X169.05 Y155.533 31572-G0 X168.779 Y155.706 31573-;TYPE:FILL 31574:_USE_INFILL_SQV 31575-G1 F1500 E3595.72302 31576-G1 F10800 X168.42 Y156.168 E3595.74248 31577-G1 X168.019 Y156.489 E3595.75956

31656-G0 F9000 X167.565 Y155.874 31657-G0 X167.44 Y155.377 31658-;TYPE:WALL-OUTER 31659:_USE_NORMAL_SQV 31660-G1 F4500 X167.957 Y155.261 E3596.67458 31661-G1 X168.478 Y155.174 E3596.69215 31662-G1 X169.005 Y155.116 E3596.70978

32024-G1 X168.265 Y157.239 E3603.67687 32025-G0 F9000 X168.185 Y156.848 32026-G1 F1500 E3597.17687 32027:;MESH:6004_Spool_holder_bearing_center_rod.stl(1) 32028-G0 F9000 X169.05 Y155.533 32029-G0 X168.961 Y154.252 32030-G0 X165.899 Y153.267

32048-G0 X169.801 Y110.548 32049-G0 X169.143 Y110.381 32050-;TYPE:FILL 32051:_USE_INFILL_SQV 32052-G1 F1500 E3603.67687 32053-G1 F10800 X169.222 Y110.292 E3603.68083 32054-G1 X169.623 Y109.995 E3603.69743

32135-G0 X166.364 Y92.941 32136-G0 X166.184 Y92.475 32137-;TYPE:WALL-OUTER 32138:_USE_NORMAL_SQV 32139-G1 F4500 X166.694 Y92.284 E3604.47483 32140-G1 X167.191 Y92.13 E3604.49214 32141-G1 X167.713 Y91.997 E3604.51005

32521-G0 X133.38 Y93.291 32522-G0 X111.803 Y13.78 32523-;TIME_ELAPSED:1595.761266 32524:;LAYER:5 32525-;TYPE:FILL 32526:_USE_INFILL_SQV 32527:;MESH:Spool_holder_body.stl 32528:_USE_NORMAL_SQV 32529-G1 F1500 E3611.47661 32530-G1 F10800 X111.879 Y13.737 E3611.47952 32531-G1 X112.28 Y13.611 E3611.4935

AV_6004_Spool_holder_bearing_center_rod.gcode.zip

themaskedbear commented 2 years ago

The extract of the gcode with the fix proposition. Seems to be good. I have not tried to print using the gcode generated using FastGyroidInfill.py with the fix yet.

22848-G0 X133.38 Y93.288 22849-G0 X111.797 Y13.815 22850-;TIME_ELAPSED:1491.243851 22851:;LAYER:4 22852-;TYPE:FILL 22853:_USE_INFILL_SQV 22854:;MESH:Spool_holder_body.stl 22855-G1 F1500 E3396.51383 22856-G1 F10800 X111.879 Y13.755 E3396.51721 22857-G1 X112.28 Y13.569 E3396.53191

26686-G0 F9000 X132.461 Y13.199 26687-G0 X132.498 Y12.7 26688-;TYPE:WALL-OUTER 26689:_USE_NORMAL_SQV 26690-G1 F4500 X132.899 Y12.763 E3456.23256 26691-G1 X133.265 Y12.949 E3456.24621 26692-G1 X133.548 Y13.231 E3456.2595

26740-G1 X132.468 Y13.1 E3488.20652 26741-G0 F9000 X132.437 Y13.5 26742-G1 F1500 E3481.70652 26743:;MESH:Spool_holder_body.stl(1) 26744-G0 F9000 X133.38 Y15.08 26745-G0 X136.12 Y15.08 26746-G0 X136.26 Y15.08 26747-;TYPE:FILL 26748:_USE_INFILL_SQV 26749-G1 F1500 E3488.20652 26750-G1 F10800 X136.34 Y15.016 E3488.20993 26751-G1 X136.741 Y14.5 E3488.23167

30574-G0 F9000 X136.759 Y13.242 30575-G0 X136.603 Y12.762 30576-;TYPE:WALL-OUTER 30577:_USE_NORMAL_SQV 30578-G1 F4500 X137.002 Y12.7 E3547.85869 30579-G1 X156.998 Y12.7 E3548.52376 30580-G1 X157.399 Y12.763 E3548.53726

30628-G1 X136.729 Y13.147 E3579.83273 30629-G0 F9000 X136.851 Y13.534 30630-G1 F1500 E3573.33273 30631:;MESH:6004_Spool_holder_bearing_center_rod.stl(3) 30632-G0 F9000 X157.88 Y113.638 30633-G0 X159.165 Y113.638 30634-G0 X164.337 Y113.606 30635-G0 X165.236 Y114.566 30636-G0 X168.16 Y113.638 30637-;TYPE:FILL 30638:_USE_INFILL_SQV 30639-G1 F1500 E3579.83273 30640-G1 F10800 X168.019 Y113.819 E3579.84036 30641-G1 X167.618 Y114.267 E3579.86036

30721-G0 F9000 X167.108 Y113.835 30722-G0 X166.963 Y113.357 30723-;TYPE:WALL-OUTER 30724:_USE_NORMAL_SQV 30725-G1 F4500 X167.456 Y113.217 E3580.80339 30726-G1 X167.973 Y113.101 E3580.82101 30727-G1 X168.494 Y113.014 E3580.83858

31089-G1 X167.562 Y115.264 E3587.80627 31090-G0 F9000 X167.444 Y114.883 31091-G1 F1500 E3581.30627 31092:;MESH:6004_Spool_holder_bearing_center_rod.stl(2) 31093-G0 F9000 X164.943 Y116.639 31094-G0 X163.894 Y117.697 31095-G0 X163.068 Y118.938

31104-G0 X165.923 Y135.267 31105-G0 X165.243 Y135.799 31106-;TYPE:FILL 31107:_USE_INFILL_SQV 31108-G1 F1500 E3587.80627 31109-G1 F10800 X165.613 Y136.275 E3587.82632 31110-G1 X166.014 Y136.723 E3587.84632

31185-G0 F9000 X167.353 Y134.817 31186-G0 X167.227 Y134.333 31187-;TYPE:WALL-OUTER 31188:_USE_NORMAL_SQV 31189-G1 F4500 X167.749 Y134.2 E3588.71659 31190-G1 X168.268 Y134.101 E3588.73417 31191-G1 X168.798 Y134.029 E3588.75196

31556-G1 X167.7 Y136.277 E3595.71863 31557-G0 F9000 X167.588 Y135.894 31558-G1 F1500 E3589.21863 31559:;MESH:6004_Spool_holder_bearing_center_rod.stl 31560-G0 F9000 X165.06 Y137.609 31561-G0 X163.993 Y138.65 31562-G0 X163.148 Y139.877

31571-G0 X169.05 Y155.533 31572-G0 X168.779 Y155.706 31573-;TYPE:FILL 31574:_USE_INFILL_SQV 31575-G1 F1500 E3595.71863 31576-G1 F10800 X168.42 Y156.168 E3595.73809 31577-G1 X168.019 Y156.489 E3595.75517

31656-G0 F9000 X167.565 Y155.874 31657-G0 X167.44 Y155.377 31658-;TYPE:WALL-OUTER 31659:_USE_NORMAL_SQV 31660-G1 F4500 X167.957 Y155.261 E3596.67019 31661-G1 X168.478 Y155.174 E3596.68776 31662-G1 X169.005 Y155.116 E3596.70539

32024-G1 X168.265 Y157.239 E3603.67248 32025-G0 F9000 X168.185 Y156.848 32026-G1 F1500 E3597.17248 32027:;MESH:6004_Spool_holder_bearing_center_rod.stl(1) 32028-G0 F9000 X169.05 Y155.533 32029-G0 X168.961 Y154.252 32030-G0 X165.899 Y153.267

32048-G0 X169.801 Y110.548 32049-G0 X169.143 Y110.381 32050-;TYPE:FILL 32051:_USE_INFILL_SQV 32052-G1 F1500 E3603.67248 32053-G1 F10800 X169.222 Y110.292 E3603.67644 32054-G1 X169.623 Y109.995 E3603.69304

32135-G0 X166.364 Y92.941 32136-G0 X166.184 Y92.475 32137-;TYPE:WALL-OUTER 32138:_USE_NORMAL_SQV 32139-G1 F4500 X166.694 Y92.284 E3604.47044 32140-G1 X167.191 Y92.13 E3604.48775 32141-G1 X167.713 Y91.997 E3604.50566

32521-G0 X133.38 Y93.291 32522-G0 X111.803 Y13.78 32523-;TIME_ELAPSED:1595.762093 32524:;LAYER:5 32525-;TYPE:FILL 32526:_USE_INFILL_SQV 32527:;MESH:Spool_holder_body.stl 32528-G1 F1500 E3611.47222 32529-G1 F10800 X111.879 Y13.737 E3611.47513 32530-G1 X112.28 Y13.611 E3611.48911