6374 Commits

Author SHA1 Message Date
Marco Munari
d73ab66970 add --rotate-x and --rotate-y to slic3r.pl command line parsing
and their correspondent implementation and documentation
I previously created issue #4862 to submit this change
2021-03-14 20:01:12 -05:00
Joseph Lenox
deef460186 Use VERSION_GREATER_EQUAL instead for version check. 2021-03-14 19:58:52 -05:00
Joseph Lenox
5ed1541246 Only look for nowide locally if the boost version is > 1070 2021-03-14 19:52:21 -05:00
Joseph Lenox
f5dc6bf259 Remove OSX from travis build list because it is broken. 2021-03-14 19:40:36 -05:00
Joseph Lenox
72bb3b3c31 Don't look for wxWidgets if not building the GUI components. 2021-03-14 18:51:10 -05:00
Joseph Lenox
89018b6e02
Backwards-compatible Boost 1.73 (#4996)
* Make boost::Placeholders::_1 visible

Fixes https://github.com/slic3r/Slic3r/issues/4967

* Use boost/nowide/cstdlib.hpp instead of boost/nowide/cenv.hpp

* Do not undefine __STRICT_ANSI__

The `__STRICT_ANSI__` macro is defined by the compiler and it's undefined to undefine or redefine it.

Using `-U__STRICT_ANSI__ -std=c++11` is just silly. If you don't want strict mode, don't ask for strict mode. Certainly don't ask for strict mode and then undefined the macro that is defined by strict mode.

The correct solution is `-std=gnu++11` which doesn't define the macro in the first place.

* Help Slic3r::_Log out by adding methods to cover const char* and const wchar_t* (so our tests pass and things don't break when passed string literals).

* calculation of COG in Slic3r (#4970)

Implement center of gravity (COG) calculation and gcode output in Slic3r.

* Comment out cpp travis osx until it's sorted

* Fix misc. typos (#4857)

* Fix misc. typos

Found via `codespell -q 3 -S *.po,./t,./xs/t,./xs/xsp -L ot,uin`

* Follow-up typo fixes

* set progress on deploy script to avoid timeouts

* cpp porting: TransformationMatrix class tests (#4906)

* cpp porting: transformation class testing

* reword some tests

* remove obsolete include

* change equality threshold implementation

* semicolons help in C++

* Stop defining _GLIBCXX_USE_C99 (#4981)

This is an internal macro defined by libstdc++ to record the result of
configure checks done when GCC was built.  Defining (or undefining or
redefining) the macro yourself results in undefined behaviour.

If the system's C library doesn't expose support for C99 or 'long long'
then telling libstdc++ that it does isn't going to work. It will just
mean libstdc++ tries to use features that don't actually exist in the C
library.

In any case, systems that don't support C99 are probably not relevant to
anybody nowadays.

Fixes #4975

* fix-cmake-boost-1-70+ (#4980)

* Use boost/nowide/cstdlib.hpp instead of boost/nowide/cenv.hpp

* Patch build to work on Boost 1.73 and older versions as well.

* Add missing usage of boost::placeholders.

* Add a using for boost versions > 1.73

Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
Co-authored-by: Jonathan Wakely <jwakely@fedoraproject.org>
Co-authored-by: Roman Dvořák <romandvorak@mlab.cz>
Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
Co-authored-by: Michael Kirsch <mkirsch.git@gmail.com>
2021-03-14 18:45:53 -05:00
Arash Partow
72436abd16
Update the ExprTk library (#5050) 2021-03-14 15:12:50 -05:00
freddii
0536b14fac
fixed typos (#5048) 2021-02-13 12:08:06 -06:00
Roy Stewart
08b3285722
Removed null checks before calls to delete and free (#5049) 2021-02-13 12:06:26 -06:00
Joseph Lenox
92abbc42df Add options=runtime to codesign 2020-08-24 14:00:56 -05:00
Joseph Lenox
28d5e8794e Also just remove binaries instead of looking for links that may not actually be broken 2020-08-22 20:40:28 -05:00
Joseph Lenox
41632a0e91 Only purge wxrc and broken symlinks. 2020-08-22 19:57:52 -05:00
Joseph Lenox
4a7090f725 Purge symlinks from the bundle so that the code sign is accepted. 2020-08-22 19:47:06 -05:00
Roman Dvořák
0ed96db439
Used filament outputs (gcode comments) in more computer-parseable format (#4969)
* Used filament outputs (gcode comments) in more computer-parseable format

* Auto stash before rebase of "refs/heads/filament_calculations"

* Used filament outputs (gcode comments) in more computer-parseable format

* Auto stash before rebase of "refs/heads/filament_calculations"
2020-07-22 22:26:17 -05:00
Michael Kirsch
8ded7fbb85
fix-cmake-boost-1-70+ (#4980) 2020-07-22 21:35:28 -05:00
Jonathan Wakely
6eeea77a7c
Stop defining _GLIBCXX_USE_C99 (#4981)
This is an internal macro defined by libstdc++ to record the result of
configure checks done when GCC was built.  Defining (or undefining or
redefining) the macro yourself results in undefined behaviour.

If the system's C library doesn't expose support for C99 or 'long long'
then telling libstdc++ that it does isn't going to work. It will just
mean libstdc++ tries to use features that don't actually exist in the C
library.

In any case, systems that don't support C99 are probably not relevant to
anybody nowadays.

Fixes #4975
2020-06-11 15:48:10 -05:00
Michael Kirsch
e37620fcd4
cpp porting: TransformationMatrix class tests (#4906)
* cpp porting: transformation class testing

* reword some tests

* remove obsolete include

* change equality threshold implementation

* semicolons help in C++
2020-06-10 13:36:31 -05:00
Joseph Lenox
3ad231a366 set progress on deploy script to avoid timeouts 2020-06-07 22:58:13 -05:00
luzpaz
1bd22994e9
Fix misc. typos (#4857)
* Fix misc. typos

Found via `codespell -q 3 -S *.po,./t,./xs/t,./xs/xsp -L ot,uin`

* Follow-up typo fixes
2020-06-07 21:37:20 -05:00
Joseph Lenox
361633b1e5 Comment out cpp travis osx until it's sorted 2020-06-07 21:33:05 -05:00
Roman Dvořák
f442fa7782
calculation of COG in Slic3r (#4970)
Implement center of gravity (COG) calculation and gcode output in Slic3r.
2020-06-07 21:24:41 -05:00
Joseph Lenox
79a1239e32 Help Slic3r::_Log out by adding methods to cover const char* and const wchar_t* (so our tests pass and things don't break when passed string literals). 2020-06-07 21:18:11 -05:00
Jonathan Wakely
c8ccc1a38e Do not undefine __STRICT_ANSI__
The `__STRICT_ANSI__` macro is defined by the compiler and it's undefined to undefine or redefine it.

Using `-U__STRICT_ANSI__ -std=c++11` is just silly. If you don't want strict mode, don't ask for strict mode. Certainly don't ask for strict mode and then undefined the macro that is defined by strict mode.

The correct solution is `-std=gnu++11` which doesn't define the macro in the first place.
2020-06-07 19:56:34 -05:00
Joseph Lenox
54a31eed20 Slic3r::Log: Add multiline flag to all of the stream interfaces with a default so that the stream can be reused w/o outputting the header information again and again (but still get treated properly for purposes of topic) 2020-01-27 00:19:45 -06:00
Joseph Lenox
44455c8cb4 Fix util script to work when TRAVIS_BRANCH is unset. 2019-12-05 20:55:24 -06:00
Joseph Lenox
c2aa7e7b3b std::move here inhibits copy elison, remove. 2019-12-04 19:58:40 -06:00
Joseph Lenox
510ba4eda4 Call repair() before trying to export object (because it tries to generate shared vertices and that method is apparently fragile). 2019-12-04 19:58:20 -06:00
Joseph Lenox
a829b0f98a Fix usage of quoted string io 2019-12-04 18:57:11 -06:00
Michael Kirsch
adea0d90ab call stdlib's abs - this fixes failing 32-bit build 2019-12-01 23:52:36 -06:00
Michael Kirsch
306944dccd more precision, appveyor? 2019-12-01 23:52:36 -06:00
Michael Kirsch
04e2cd39a0 apply object's transformation instead of translation 2019-12-01 23:52:36 -06:00
Michael Kirsch
4745d13955 rework the former property origin_translation 2019-12-01 23:52:36 -06:00
Michael Kirsch
c2580bd02e don't always center, only align to ground 2019-12-01 23:52:36 -06:00
Michael Kirsch
d157dc7ef6 differenciate between plater and model object 2019-12-01 23:52:36 -06:00
Michael Kirsch
89929de599 individual scales should determined along rows 2019-12-01 23:52:36 -06:00
Michael Kirsch
bf4223aa26 don't apply the inverse scale twice 2019-12-01 23:52:36 -06:00
Michael Kirsch
fe171e9646 fix test name 2019-12-01 23:52:36 -06:00
Michael Kirsch
2199d7f99c rewrite transform_bb 2019-12-01 23:52:36 -06:00
Michael Kirsch
852fb80555 fix transform by instance, also make it take potentially different additional trafos into account 2019-12-01 23:52:36 -06:00
Michael Kirsch
794b3a1419 move matrix decomposition to instance class 2019-12-01 23:52:36 -06:00
Michael Kirsch
5aa8d8e748 shift indices, set from 0 2019-12-01 23:52:36 -06:00
Michael Kirsch
73a2560252 Trafo class description 2019-12-01 23:52:36 -06:00
Michael Kirsch
880a00e421 revert loops test 2019-12-01 23:52:36 -06:00
Michael Kirsch
76152fd5fa whitespace 2019-12-01 23:52:36 -06:00
Michael Kirsch
00b836b3da reinstate old testing plus transformation test 2019-12-01 23:52:36 -06:00
Michael Kirsch
ad7a1696f0 reinstate direct mesh manipulation 2019-12-01 23:52:36 -06:00
Michael Kirsch
65f34b838a implement preservation of transformations to reload function 2019-12-01 23:52:36 -06:00
Michael Kirsch
79c4ee16e1 kind of expose the transformation object to perl 2019-12-01 23:52:36 -06:00
Michael Kirsch
83c98871ba change tests according to new class 2019-12-01 23:52:36 -06:00
Michael Kirsch
89ed376553 expose mesh transform cloning to perl 2019-12-01 23:52:36 -06:00