6015 Commits

Author SHA1 Message Date
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
Joseph Lenox
b2d6c47c53 Finish merging in-process work from @Samir55 2018-07-15 12:08:35 -05:00
Joseph Lenox
575faf3231 Merge remote-tracking branch 'samir/Samir55-support_porting' into test_merge_samir
# Conflicts:
#	src/CMakeLists.txt
2018-07-15 12:02:11 -05:00
Joseph Lenox
37e484d838 Check a few more unset options with getInt and getBool 2018-07-15 10:25:15 -05:00
Joseph Lenox
65676215cc added getBool() to Slic3r::Config interface. 2018-07-15 10:24:57 -05:00
Joseph Lenox
846e46a130 Added apply() callthrough method to allow Slic3r::ConfigBase configs to be added to the local DynamicPrintConfig. 2018-07-15 10:18:20 -05:00
Joseph Lenox
bdb2457a57 test_config: Use Catch2's REQUIRE_THROWS_AS instead of manually dealing with it.
Added tests to verify default option passthrough and getString() method.
2018-07-15 10:14:28 -05:00
Joseph Lenox
9585a3e564 Default to pulling from defaults with get() functions. 2018-07-15 10:12:28 -05:00
Joseph Lenox
28504f9658 added getString() methods to ConfigOptionFloat and ConfigOptionInt 2018-07-15 10:11:02 -05:00
Joseph Lenox
49f123ca20 Moved trim_zeroes to libslic3r utils. 2018-07-15 10:10:42 -05:00
Joseph Lenox
ee71f8b8f8 Removed duplicate slic3r.cpp (was already in utils) 2018-07-15 00:13:04 -05:00
Joseph Lenox
54d8760159 Add build commit macro for non-XS usage. 2018-07-15 00:12:44 -05:00
Joseph Lenox
7b36669246 Ensure that conditional gcode is compiled in 2018-07-15 00:12:00 -05:00
Joseph Lenox
d30496c5bd Let's not return references to Slic3r::Config when we can return the shared pointer instead from methods that are going to construct a Slic3r::Config 2018-07-14 21:58:56 -05:00
Joseph Lenox
70cd35af31 Refactored Slic3r::Config to a composition style instead of direct inheritance of Slic3r::DynamicPrintConfig. 2018-07-14 21:48:22 -05:00
Samir55
737353a85b Refactoring. 2018-07-15 04:34:49 +02:00
Samir55
99c7c2c8bf Refactoring. 2018-07-15 03:46:51 +02:00
Samir55
49fbe98910 Fixing bugs. 2018-07-15 03:42:50 +02:00
Joseph Lenox
db43d27be7 Change dependency linking depending on SLIC3R_STATIC CMAKE option. 2018-07-14 20:21:34 -05:00
Joseph Lenox
4c3bddd6b8 Set flags appropriately in Release and Debug configurations in Cmake. 2018-07-14 20:20:26 -05:00
Joseph Lenox
1bf8ca7a59 Refactor to provide an istream prototype for parse() 2018-07-14 20:19:28 -05:00
Samir55
4931e4025e Some fixes to SupportMaterial memver functions. 2018-07-14 23:09:22 +02:00
Joseph Lenox
34e633a1c0 Code cleanup: Ensure that a floats remain floats all the way through expressions. 2018-07-14 15:06:26 -05:00
Joseph Lenox
2f8c88cb96 Don't use the new methods on perl side (avoid test failure in tmf) 2018-07-13 19:41:44 -05:00
Joseph Lenox
3f3de067f8 Added epsilon to Slic3r::Geometry; added _equiv for comparing two items that have operator- overloaded. 2018-07-13 19:36:01 -05:00
Joseph Lenox
f29768ff8e Begin port of Slic3r::Test methods as part of the test harness (not linked into main application) 2018-07-13 19:20:23 -05:00
Joseph Lenox
8255dc321b Added move constructor and move-assignment operator for TriangleMesh, factored out
the copy construtor and copy-assignment to a private clone() method.

copy-and-swap had a conflict in the selection of signatures in some existing methods.
2018-07-13 19:18:50 -05:00
Benjamin Landers
c1d71bd520 First steps for Preview3d
This is now blocking on the slicing pipeline being set up to test
2018-07-13 05:53:13 -07:00
Benjamin Landers
9ca0fed4b5 Added the rough form of ObjectCutDialog
OptionsGroup needs to be more complete before moving ahead with this
2018-07-13 05:13:58 -07:00
Benjamin Landers
40decdc405 Cleanup 2018-07-13 05:09:17 -07:00
Benjamin Landers
2258fd5978 Added selection and moving volumes to Plate3D 2018-07-13 05:03:46 -07:00
Joseph Lenox
238e32666a Replaced redundant constructor and pushed the raw pointer constructor into private scope. 2018-07-12 23:48:53 -05:00
Joseph Lenox
f0fd8240da Actually build things that aren't the perl build env 2018-07-12 23:34:04 -05:00
Joseph Lenox
f0ba8a2340 Replaced iterator-based constructor with one that takes either vector or array.
Refactored TriangleMesh constructor to use raw pointer (C-style semantics) and pointer vector/array.
2018-07-12 23:26:07 -05:00
Joseph Lenox
ee208ddc73 Added templated iterator-based constructor for TriangleMesh and tests for it. 2018-07-12 23:13:44 -05:00
Joseph Lenox
05c900a283 Tagged constructors for Point, Point3, Pointf, Pointf3 as constexpr to extend their use 2018-07-12 23:13:02 -05:00
Joseph Lenox
932a238328 Add test to set string options. 2018-07-12 22:02:09 -05:00
Joseph Lenox
7861037556 Wrote accessor tests and accompanying implementation. 2018-07-12 21:54:10 -05:00
Joseph Lenox
40cedc350c Basic validation for generic numeric types and its test. 2018-07-12 20:21:07 -05:00
Joseph Lenox
5991bf8833 Add set functions to avoid going through deserialize in ConfigOptionFloat and its descendants. 2018-07-12 20:20:16 -05:00
Joseph Lenox
e3e1f4762e Use regular char instead of 32 2018-07-12 17:33:19 -05:00
Joseph Lenox
2aa97855c8 Fixed some paths and stubbed new_from_ini 2018-07-12 17:32:05 -05:00
Joseph Lenox
62aeb5be85 Forgot to add Config:: to methods in Config.cpp 2018-07-12 17:05:19 -05:00
Joseph Lenox
44115a6885 ignore built files and configured test_options.hpp 2018-07-12 17:03:59 -05:00
Joseph Lenox
1cbc1895ea Fix a typo in CMakeLists, point at correct path for test_options.hpp.in 2018-07-12 17:02:12 -05:00
Joseph Lenox
c3ff41b0c2 Moved read_ini and write_ini to cpp file, added more comments 2018-07-12 12:08:46 -05:00
Joseph Lenox
eacc24fc96 one more clause for files that don't have a .license 2018-07-12 11:44:47 -05:00
Joseph Lenox
5faaa4ead0 Added additional rules for external test inputs, including licensing requirements. 2018-07-12 11:36:29 -05:00
Joseph Lenox
61c1255aec
I wanted a HR there, not === 2018-07-12 11:13:21 -05:00
Joseph Lenox
8bac95a208 Expanded tests slightly for config and laid out framework for external input files. 2018-07-12 11:08:15 -05:00