37 Commits

Author SHA1 Message Date
Joseph Lenox
dabb5f3823 Fix skirt/Brim (#4669)
* Start implementing skirt/brim tests.

* Move skirt_height_z (representing the highest skirt height in actual Z coordinates) to Print and prime it with make_brim so it can be used in PrintGCode.

Updated test to correctly verify skirt is generated for one and multiple objects.

* Fallout from the config refactor; use correct accessors.

* Fix bug where brim was not generated (inverted logic)

* Finish porting tests, left one intentional failure as support material is not generated yet (segfaults).
2019-01-06 23:58:08 +01:00
Joseph Lenox
39b157b4f8 Fallout from the config refactor; use correct accessors. 2019-01-02 23:51:46 -06:00
Joseph Lenox
45353b78c8 Remove trailing spaces in lines. 2019-01-01 22:30:29 -06:00
Alessandro Ranellucci
f0f36cb935 Complete the C++ CLI; remove the #ifndef SLIC3RXS guards and fix CI by removing std::initializer_lists 2018-11-25 11:55:57 -06:00
Joseph Lenox
d1446fe2af
Wrap in brackets to restrict scope of temporary variables. 2018-11-06 08:15:55 -06:00
Joseph Lenox
f8e222c722 Derp, typo'd the placeholder name. 2018-11-05 20:13:55 -06:00
Joseph Lenox
5509afa82a #4569 Added new gcode placeholder, [filament_extruder_id] that is only valid in filament start/end gcode and refers to which position this filament is loaded in. 2018-11-05 19:50:29 -06:00
Joseph Lenox
880e9a52c3 Prime layer_z and layer_num for end gcode in C++ PrintGcode. 2018-09-02 11:49:49 -05:00
Joseph Lenox
6303d0a59a Fixed regression where end gcode wasn't being applied in CLI path. 2018-09-02 11:49:08 -05:00
Joseph Lenox
7fb5fcb450 Wire spiral vase into the printing logic. 2018-08-05 23:31:01 -05:00
Joseph Lenox
5baee8a1cb Cooling buffer works in cppgui 2018-08-05 22:27:36 -05:00
Joseph Lenox
80d7f80734 Implemented printing complete_objects 2018-07-26 23:00:38 -05:00
Joseph Lenox
f625c69f41 Forgot to handle multiple objects at the same time when bucket sorting. Fixed. 2018-07-26 23:00:18 -05:00
Joseph Lenox
71009d8c90 Actually implement layer change. It's somewhat important. 2018-07-26 22:59:33 -05:00
Joseph Lenox
a66ae6ac26 Moved regular expression definitions to header (for reuse) 2018-07-26 22:58:43 -05:00
Joseph Lenox
6710b249b1 Also flatten the infill list before iterating over it. 2018-07-25 23:41:27 -05:00
Joseph Lenox
8c33fac143 Flatten the perimeters list (which is what the xspp does in the background) before iterating over it. 2018-07-25 23:39:26 -05:00
Joseph Lenox
c78c23c73d Don't need the const_cast. 2018-07-25 23:38:46 -05:00
Joseph Lenox
725f8282b3 Handle case where the get_region() call fails. 2018-07-25 23:14:35 -05:00
Joseph Lenox
347143e344 Reordered to avoid weird logic. 2018-07-25 22:44:24 -05:00
Joseph Lenox
11f85a490a Flatten entities 2018-07-25 22:42:22 -05:00
Joseph Lenox
0015b3c7d3 Was incorrectly reserving space for vector. Fixed. 2018-07-25 21:41:07 -05:00
Joseph Lenox
bb7d82622a Accidentally inverted the logic in the first draft. 2018-07-25 19:13:44 -05:00
Joseph Lenox
5bb7f79baf Workaround to avoid a crash referencing _skirt_done when it is empty. 2018-07-24 23:38:19 -05:00
Joseph Lenox
1a94921462 Whoops, need to call reserve() instead of passing 100 to the constructor. 2018-07-24 23:37:10 -05:00
Joseph Lenox
e64f23e7bb Forgot to call Geometry::chained_path 2018-07-24 23:36:11 -05:00
Joseph Lenox
fcd3da17b3 Use scaled integer coordinates for map entries instead of unscaled doubles. 2018-07-24 23:35:54 -05:00
Benjamin Landers
fd1a4c396f Finish up process_layer 2018-07-24 02:24:11 -07:00
Joseph Lenox
d4191a96b8 Number of X is better done with < and not doing the -1 in C++ 2018-07-21 22:07:09 -05:00
Joseph Lenox
f2206be78b Fixed a typo spotted by @thethirdone 2018-07-21 08:40:00 -05:00
Joseph Lenox
2bd1d142c8 more work on process_layer. 2018-07-18 22:40:07 -05:00
Joseph Lenox
f1616ee295 Implemented more of process_layer through skirt generation 2018-07-17 22:58:46 -05:00
Joseph Lenox
e6203c0f0a Fixed verification
Also started stubbing out process_layer (applying configs, etc)
2018-07-16 22:28:20 -05:00
Joseph Lenox
080c930a3a Implemented more of output()
basic routine should be implemented (sans complete objects), need
process_layer next.
2018-07-16 21:55:36 -05:00
Joseph Lenox
2b741bc8a1 Forgot to remove std::cerr output 2018-07-16 17:14:55 -05:00
Joseph Lenox
321b5893b8 Moved constructor to cpp file 2018-07-16 17:11:15 -05:00
Joseph Lenox
5b71940e60 Initial commit of gcode export toolchain (incomplete).
Passes tests so far as written, gcode output through test interface expects an ostream.
2018-07-15 14:48:56 -05:00