Skip to content
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

Merge in new sli3cer #4

Merged
merged 210 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
9352c9d
Add tests that initially fail
nwneisen Sep 4, 2019
8216f22
Set extruder value before start_gcode
nwneisen Sep 4, 2019
b22b1ae
Adjust test for current_extruder being second extruder
nwneisen Sep 4, 2019
1a0fc94
Set the current_extruder value for the GUI
nwneisen Sep 4, 2019
5f40e72
Change [layer_num] to use layer.id()
nwneisen Aug 29, 2019
46cd568
Add test for layer_num value being the layer index
nwneisen Aug 30, 2019
bdda20d
Allow for a flag to change scaling from 0-100 from the default of 0-2…
lordofhyphens Jul 7, 2019
08d91e9
Scale up to 0-100 not 0-1
lordofhyphens Jul 7, 2019
2ef957d
xs/Build.pl: fix typo BOOST_INCLUDEPATH -> BOOST_INCLUDEDIR
jpnurmi Sep 20, 2019
4f5b935
add new hash to save dialog ref and also a function to show the dialog
hellraiserinchief Oct 13, 2019
5617535
Display approx. print-time in hours
berberic2 Aug 4, 2019
dde72b1
Creation of Trafo Class
Oekn5w Jun 8, 2018
418719c
Vector-Vector rotation, changed to double to minimize precision loss …
Oekn5w Jun 9, 2018
a2e8aca
Making functions constant and the entries double precision
Oekn5w Jun 29, 2018
9158eb0
Change output of inverse function to pass by reference
Oekn5w Feb 24, 2019
f8e6bba
add TrafoMatrix class to compile targets
Oekn5w Feb 24, 2019
402358f
add required functions
Oekn5w Feb 24, 2019
a023cff
change raw pointer to vector
Oekn5w Feb 26, 2019
143270b
Give more options for multiplication including the instance
Oekn5w Feb 27, 2019
8219ffe
Fix the very core multiply function
Oekn5w Feb 27, 2019
18a85e9
change to noexcept data function to get pointer to transform matrix
Oekn5w Mar 5, 2019
32b3435
add transform function with another output stl
Oekn5w Mar 30, 2019
ee50835
change transform to return mesh
Oekn5w Mar 30, 2019
e10fd14
add trafo matrix to volumes
Oekn5w Mar 30, 2019
dd3c83b
comment out 3mf only properties
Oekn5w Mar 30, 2019
7366702
declare transform function as const
Oekn5w Mar 30, 2019
287948a
remove references to 3mf specific instance variables
Oekn5w Apr 6, 2019
91f12b5
implement returning trafo matrix
Oekn5w Apr 6, 2019
25f3df6
remove original transform function
Oekn5w Apr 6, 2019
44d6a7f
move transform function to volume class
Oekn5w Apr 6, 2019
bf46457
change geometric operations to alter trafo
Oekn5w Apr 6, 2019
3c05edd
change object's mesh functions to get trafo'd meshes
Oekn5w Apr 6, 2019
51edd87
fix get mesh function
Oekn5w Apr 14, 2019
bc491a0
remove or comment now invalid instance variables
Oekn5w Apr 14, 2019
a30cfde
change trafo output of 3mf export
Oekn5w Apr 14, 2019
7ea69da
do not track build artifacts from failed xs compilation
Oekn5w Apr 14, 2019
dfda739
remove clone xsp map
Oekn5w Apr 14, 2019
bc836a6
skip 3mf tests for now
Oekn5w Apr 16, 2019
3ade7bb
no perl binding needed for Trafo Matrix for now
Oekn5w Apr 16, 2019
e8452be
make xs compilable
Oekn5w Apr 16, 2019
b0702ec
change visualization to new system
Oekn5w Apr 16, 2019
545aa3c
feeble attempts to get perl working
Oekn5w May 11, 2019
3782fad
remove everything perl sided
Oekn5w May 18, 2019
d4d1975
debugging printf
Oekn5w May 19, 2019
a3a7f97
check for already allocated memory
Oekn5w May 19, 2019
428c04e
remove gitignore for build temps
Oekn5w May 19, 2019
eca3585
remove unused variable
Oekn5w May 19, 2019
dfee447
debug prints
Oekn5w May 19, 2019
c91229c
detour via variable
Oekn5w May 19, 2019
4d9a5b1
call the proper function *facepalm*
Oekn5w May 19, 2019
4dc53ff
delete mesh tests
Oekn5w May 24, 2019
a8cda97
reinstate original transform function
Oekn5w May 24, 2019
f607f5d
remove mesh manipulation functions
Oekn5w May 24, 2019
b55b220
apply function call
Oekn5w May 24, 2019
1da02f0
add default null-pointer argument
Oekn5w May 24, 2019
68de2ba
adapt mesh function calls
Oekn5w May 24, 2019
9fc2aa8
rename IO transform function
Oekn5w May 24, 2019
c97553e
fix weird shearing on plater
Oekn5w May 25, 2019
3fedb9b
nullptr is now default value
Oekn5w May 25, 2019
810bff9
change bb-related transform functions
Oekn5w May 25, 2019
b46383a
fix rotation matrices *facepalm no 2*
Oekn5w May 25, 2019
293a6bf
quaternions take half the angle the represent
Oekn5w May 25, 2019
9b3d8a1
finishing rotation vec to vec function
Oekn5w May 25, 2019
dd082cb
delete unneeded debug switch
Oekn5w May 25, 2019
8b9b33b
add debug printf
Oekn5w May 25, 2019
5bfba44
mesh for print: don't take instance's offset
Oekn5w May 25, 2019
53ed1cd
fix some remaining bounding box calls
Oekn5w May 25, 2019
a7698b3
fix discrepancy between manual (user dialog) and incremental (UI butt…
Oekn5w May 26, 2019
e9a239a
remove debug prints
Oekn5w May 26, 2019
10fc704
change transformation to use double precision
Oekn5w May 26, 2019
438e462
remove unused functions to set translation directly
Oekn5w May 26, 2019
dcf8370
comments and floating type adaptation
Oekn5w May 26, 2019
6a11cf9
remove debug prints
Oekn5w May 26, 2019
52306da
make some functions pass by reference
Oekn5w May 26, 2019
c2021aa
change some parameters from float to double
Oekn5w May 26, 2019
c55b708
fix transformation functions
Oekn5w May 26, 2019
63ac0a1
apply to trafo functions to volume, add vec to vec rotation for object
Oekn5w May 26, 2019
c689eb4
rotate to face: use trafo matrix
Oekn5w May 26, 2019
fbea2fd
syntax
Oekn5w May 26, 2019
c000e93
fix orientation
Oekn5w May 26, 2019
bcdcec1
fix face to plane
Oekn5w May 26, 2019
48e0caa
change perl function to use mesh initalized in perl
Oekn5w May 27, 2019
3d3f71c
fix include define to align name
Oekn5w May 28, 2019
b1a3b3c
align list alphabetically
Oekn5w May 28, 2019
2aeacd3
readd perl map; it actually works this time
Oekn5w May 28, 2019
cc8cb40
delete perl workaround (output given as pointer)
Oekn5w Jun 1, 2019
564377e
remove functions to directly manipulate the object; reordering rotati…
Oekn5w Jun 2, 2019
4e14860
add function of transformed bb in mesh
Oekn5w Jun 2, 2019
8928678
change / rewrite volume and object function
Oekn5w Jun 2, 2019
ff201b5
make instance's trafo function use the new class
Oekn5w Jun 2, 2019
e08eaef
remove unneeded perl binding stuff
Oekn5w Jun 2, 2019
8b17156
call the now valid functions
Oekn5w Jun 2, 2019
5c5202e
Add const keyword to multiply returning functions
Oekn5w Jun 24, 2019
dd75805
add placeholder file for trafo tests
Oekn5w Jun 24, 2019
732ebdd
remove direct voume manipulators (only via apply_transformation)
Oekn5w Jun 25, 2019
da3025e
update trafo property description
Oekn5w Jun 25, 2019
4c1e447
update parameter description
Oekn5w Jun 26, 2019
c6b70b9
fix syntax of changed functions
Oekn5w Jun 26, 2019
8388283
dummize trafo test to pass build
Oekn5w Jun 26, 2019
f8c6c63
add static translation via vector parameter
Oekn5w Jun 28, 2019
d7c1f8b
add function to center around bb
Oekn5w Jun 28, 2019
4f4abe3
rewrite functionality of inverse function
Oekn5w Jun 28, 2019
4e00c34
trafo probably won't be necessary here
Oekn5w Jun 28, 2019
ea156da
wrap every object transforming function to work from the centers
Oekn5w Jun 28, 2019
d18fe56
check for negative determinate in stl transform functions
Oekn5w Jun 29, 2019
098d428
reinstate model volume transformations
Oekn5w Jun 29, 2019
9e39077
some perl bindings
Oekn5w Jun 30, 2019
366c258
add comparision overloads for tests
Oekn5w Jul 3, 2019
929da2e
add test framework for easy calling from command line
Oekn5w Jul 3, 2019
196c20a
change to global epsilon
Oekn5w Jul 3, 2019
3c757c2
add some checking functions
Oekn5w Jul 4, 2019
82787cc
add multiplication manipulators to perl
Oekn5w Jul 4, 2019
8fb3ae2
write checks for basic matrix stuff
Oekn5w Jul 4, 2019
62fa005
start testing matrix generation
Oekn5w Jul 4, 2019
71340dd
set scale and mirror tests
Oekn5w Jul 5, 2019
ea8a8ee
separate eye not really necessary
Oekn5w Jul 5, 2019
e82c6ec
all is double now, and clarifying comment
Oekn5w Jul 6, 2019
ac3a181
add translations and rotation tests
Oekn5w Jul 6, 2019
a0675cb
remove framework for test dev
Oekn5w Jul 6, 2019
0772b3d
add test dev framework
Oekn5w Jul 6, 2019
5f97425
fix trafo test imports
Oekn5w Jul 6, 2019
1bd679d
add public trafo to instance
Oekn5w Jul 6, 2019
2a476e1
adapt 3mf to matrices
Oekn5w Jul 6, 2019
f695e6b
add comment about the necessary matrix calc
Oekn5w Jul 7, 2019
d42914a
fix tests with what is available in instance
Oekn5w Jul 7, 2019
e980388
add trafo interactability to perl binding
Oekn5w Jul 7, 2019
08e8bd1
update skipping code
Oekn5w Jul 7, 2019
fb418b6
recalculate voume on transformation
Oekn5w Jul 7, 2019
e755634
add transform function to perl interface
Oekn5w Jul 7, 2019
c7afa5c
fix functions called inside testing
Oekn5w Jul 7, 2019
956b7e1
reenable mesh and 3mf tests
Oekn5w Jul 7, 2019
c8a9ffc
cleanup commented / deleted code Part 1
Oekn5w Jul 8, 2019
5bce259
add internal trafo for undo stack
Oekn5w Jul 9, 2019
0b1f831
make generic transformation public
Oekn5w Jul 9, 2019
fa45426
change undo / redo stack to use generic transformations if possible
Oekn5w Jul 9, 2019
e7f7acf
recalculate volume only if determinante != 1
Oekn5w Jul 10, 2019
88160ae
fix missing instance declaration
Oekn5w Jul 10, 2019
e2af486
add undo op for face-to-face rotation
Oekn5w Jul 10, 2019
e91d0ba
fix transformations, attached to volume now
Oekn5w Jul 10, 2019
587629a
fix UI prompt
Oekn5w Jul 10, 2019
29d3e46
move the main reload to after the dialog
Oekn5w Jul 10, 2019
cf4900f
adapt reload dialog for new option
Oekn5w Jul 12, 2019
23e141b
dialog shows independantly from additional part/mod status
Oekn5w Jul 12, 2019
6f88bcd
rename property
Oekn5w Jul 12, 2019
7a16ec9
wording
Oekn5w Jul 12, 2019
a9a1422
add property to options
Oekn5w Jul 12, 2019
89ed376
expose mesh transform cloning to perl
Oekn5w Jul 13, 2019
83c9887
change tests according to new class
Oekn5w Jul 13, 2019
79c4ee1
kind of expose the transformation object to perl
Oekn5w Jul 13, 2019
65f34b8
implement preservation of transformations to reload function
Oekn5w Jul 13, 2019
ad7a169
reinstate direct mesh manipulation
Oekn5w Jul 16, 2019
00b836b
reinstate old testing plus transformation test
Oekn5w Jul 16, 2019
76152fd
whitespace
Oekn5w Jul 16, 2019
880a00e
revert loops test
Oekn5w Jul 17, 2019
73a2560
Trafo class description
Oekn5w Jul 17, 2019
5aa8d8e
shift indices, set from 0
Oekn5w Jul 18, 2019
794b3a1
move matrix decomposition to instance class
Oekn5w Jul 18, 2019
852fb80
fix transform by instance, also make it take potentially different ad…
Oekn5w Jul 18, 2019
2199d7f
rewrite transform_bb
Oekn5w Jul 19, 2019
fe171e9
fix test name
Oekn5w Jul 19, 2019
bf4223a
don't apply the inverse scale twice
Oekn5w Jul 19, 2019
89929de
individual scales should determined along rows
Oekn5w Jul 19, 2019
d157dc7
differenciate between plater and model object
Oekn5w Jul 19, 2019
c2580bd
don't always center, only align to ground
Oekn5w Jul 20, 2019
4745d13
rework the former property origin_translation
Oekn5w Jul 21, 2019
04e2cd3
apply object's transformation instead of translation
Oekn5w Jul 21, 2019
306944d
more precision, appveyor?
Oekn5w Jul 22, 2019
adea0d9
call stdlib's abs - this fixes failing 32-bit build
Oekn5w Aug 19, 2019
a829b0f
Fix usage of quoted string io
lordofhyphens Dec 5, 2019
510ba4e
Call repair() before trying to export object (because it tries to gen…
lordofhyphens Dec 5, 2019
c2aa7e7
std::move here inhibits copy elison, remove.
lordofhyphens Dec 5, 2019
44455c8
Fix util script to work when TRAVIS_BRANCH is unset.
lordofhyphens Dec 6, 2019
54a31ee
Slic3r::Log: Add multiline flag to all of the stream interfaces with …
lordofhyphens Jan 27, 2020
c8ccc1a
Do not undefine __STRICT_ANSI__
jwakely Jun 2, 2020
79a1239
Help Slic3r::_Log out by adding methods to cover const char* and cons…
lordofhyphens Jun 8, 2020
f442fa7
calculation of COG in Slic3r (#4970)
roman-dvorak Jun 8, 2020
361633b
Comment out cpp travis osx until it's sorted
lordofhyphens Jun 8, 2020
1bd2299
Fix misc. typos (#4857)
luzpaz Jun 8, 2020
3ad231a
set progress on deploy script to avoid timeouts
lordofhyphens Jun 8, 2020
e37620f
cpp porting: TransformationMatrix class tests (#4906)
Oekn5w Jun 10, 2020
6eeea77
Stop defining _GLIBCXX_USE_C99 (#4981)
jwakely Jun 11, 2020
8ded7fb
fix-cmake-boost-1-70+ (#4980)
Oekn5w Jul 23, 2020
0ed96db
Used filament outputs (gcode comments) in more computer-parseable for…
roman-dvorak Jul 23, 2020
4a7090f
Purge symlinks from the bundle so that the code sign is accepted.
lordofhyphens Aug 23, 2020
41632a0
Only purge wxrc and broken symlinks.
lordofhyphens Aug 23, 2020
28d5e87
Also just remove binaries instead of looking for links that may not a…
lordofhyphens Aug 23, 2020
92abbc4
Add options=runtime to codesign
lordofhyphens Aug 24, 2020
08b3285
Removed null checks before calls to delete and free (#5049)
hd-genius Feb 13, 2021
0536b14
fixed typos (#5048)
freddii Feb 13, 2021
72436ab
Update the ExprTk library (#5050)
ArashPartow Mar 14, 2021
89018b6
Backwards-compatible Boost 1.73 (#4996)
lordofhyphens Mar 14, 2021
72bb3b3
Don't look for wxWidgets if not building the GUI components.
lordofhyphens Mar 14, 2021
f5dc6bf
Remove OSX from travis build list because it is broken.
lordofhyphens Mar 15, 2021
5ed1541
Only look for nowide locally if the boost version is > 1070
lordofhyphens Mar 15, 2021
deef460
Use VERSION_GREATER_EQUAL instead for version check.
lordofhyphens Mar 15, 2021
d73ab66
add --rotate-x and --rotate-y to slic3r.pl command line parsing
iviar Sep 12, 2019
5d371aa
Allow for compiling with debug output turned on by default.
lordofhyphens Mar 14, 2021
c61c25b
Throw a runtime error if the number of solid layers grows above the t…
lordofhyphens Mar 15, 2021
b09667e
Don't add any facets to the read-in list if it calls out a vertex tha…
lordofhyphens Mar 15, 2021
3ab824e
undo whitespace-only change.
lordofhyphens Mar 15, 2021
1f2d3d1
Refactor the test case to definitely cause a segmentation fault.
lordofhyphens Mar 15, 2021
18ddd3a
Rename to .amf from .xml
lordofhyphens Mar 15, 2021
8c69278
Quick port amf (#5068)
lordofhyphens Mar 21, 2021
9596722
Fix duplicate symbols caused by double invocation of miniz.h
alranel Jul 15, 2021
8abcb51
Bugfix: sending G-code failed because of line number errors. #4847
alranel Jul 15, 2021
473319b
New --print command line option to send G-code
alranel Jul 15, 2021
95159a8
Change links to slic3r.org from http to https
alranel Jul 21, 2021
b1a5500
Append serial.txt and .vscode to .gitignore
alranel Jul 21, 2021
026c138
Do not try to reinstall modules that were installed manually
alranel Oct 28, 2022
815a273
Merge branch 'heartwaresync' into heartwaresyncmerge
edmundwatson Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ When possible, please include the following information when [reporting an issue
* STL, OBJ or AMF input file (please make sure the input file is not broken, e.g. non-manifold, before reporting a bug)
* a screenshot of the G-code layer with the issue (e.g. using [Pronterface](https://github.com/kliment/Printrun) or preferably the internal preview tab in Slic3r).
* If the issue is a request for a new feature, be ready to explain why you think it's needed.
* Doing more prepatory work on your end makes it more likely it'll get done. This includes the "how" it can be done in addition to the "what".
* Doing more preparatory work on your end makes it more likely it'll get done. This includes the "how" it can be done in addition to the "what".
* Define the "What" as strictly as you can. Consider what might happen with different infills than simple rectilinear.

Please make sure only to include one issue per report. If you encounter multiple, unrelated issues, please report them as such.
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ CMakeCache.txt
src/test/test_options.hpp
src/slic3r
build/*
serial.txt
.vscode

slic3r
gui_test
Expand Down
48 changes: 26 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://download.opensuse.org/repositories/science:/dlr/xUbuntu_14.04/ /'
key_url: 'https://download.opensuse.org/repositories/science:dlr/xUbuntu_14.04/Release.key'
packages:
- g++-7
- gcc-7
Expand Down Expand Up @@ -85,29 +87,31 @@ matrix:
# - $HOME/Library/Caches/Homebrew
# - local-lib

- os: osx
osx_image: xcode9.4 # OS X 10.13
env:
- TARGET=main
cache:
directories:
- /usr/local/Homebrew
- $HOME/Library/Caches/Homebrew
- local-lib
after_success:
- if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/osx/travis-deploy-main.sh || travis_terminate 1; fi
# OSX errors out consistently for Perl now too. Back to jenkins.
# - os: osx
# osx_image: xcode9.4 # OS X 10.13
# env:
# - TARGET=main
# cache:
# directories:
# - /usr/local/Homebrew
# - $HOME/Library/Caches/Homebrew
# - local-lib
# after_success:
# - if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/osx/travis-deploy-main.sh || travis_terminate 1; fi

- os: osx
osx_image: xcode9.4
env:
- TARGET=cpp
- CACHE=$HOME/cache
cache:
ccache: true
directories:
- /usr/local/Homebrew
- $HOME/cache
- $HOME/Library/Caches/Homebrew
# OSX is erroring out consistently for C++, remove and debug
# - os: osx
# osx_image: xcode9.4
# env:
# - TARGET=cpp
# - CACHE=$HOME/cache
# cache:
# ccache: true
# directories:
# - /usr/local/Homebrew
# - $HOME/cache
# - $HOME/Library/Caches/Homebrew

env:
global:
Expand Down
4 changes: 4 additions & 0 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ EOF
push @cmd, '--notest'
if $module =~ /^(?:OpenGL|Math::PlanePath|Test::Harness|IO::Scalar)$/;

# do not try to reinstall modules that were already
# installed manually
push @cmd, '--skip-satisfied';

push @cmd, "$module~$version";
my $res = system @cmd;
if ($res != 0) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Slic3r is:
* **Embeddable:** a complete and powerful command line interface allows Slic3r to be used from the shell or integrated with server-side applications.
* **Powerful:** see the list below!

See the [project homepage](http://slic3r.org/) at slic3r.org for more information.
See the [project homepage](https://slic3r.org/) at slic3r.org for more information.

### <a name="features"></a>Features

Expand All @@ -44,7 +44,7 @@ The core parts of Slic3r are written in C++11, with multithreading. The graphica

### How to install?

You can download a precompiled package from [slic3r.org](http://slic3r.org/) (releases) or from [dl.slicr3r.org](http://dl.slic3r.org/dev/) (automated builds).
You can download a precompiled package from [slic3r.org](https://slic3r.org/) (releases) or from [dl.slicr3r.org](https://dl.slic3r.org/dev/) (automated builds).

If you want to compile the source yourself follow the instructions on one of these wiki pages:
* [Linux](https://github.com/slic3r/Slic3r/wiki/Running-Slic3r-from-git-on-GNU-Linux)
Expand Down
1 change: 1 addition & 0 deletions lib/Slic3r.pm
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ sub thread_cleanup {
*Slic3r::Surface::DESTROY = sub {};
*Slic3r::Surface::Collection::DESTROY = sub {};
*Slic3r::TriangleMesh::DESTROY = sub {};
*Slic3r::TransformationMatrix::DESTROY = sub {};
return undef; # this prevents a "Scalars leaked" warning
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Slic3r/GCode/MotionPlanner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Slic3r::Geometry::Clipper qw(offset offset_ex diff_ex intersection_pl);
has '_inner_margin' => (is => 'ro', default => sub { scale 1 });
has '_outer_margin' => (is => 'ro', default => sub { scale 2 });

# this factor weigths the crossing of a perimeter
# this factor weighs the crossing of a perimeter
# vs. the alternative path. a value of 5 means that
# a perimeter will be crossed if the alternative path
# is >= 5x the length of the straight line we could
Expand Down
2 changes: 1 addition & 1 deletion lib/Slic3r/GCode/PressureRegulator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sub process {
# This is a print move.
my $F = $args->{F} // $reader->F;
if ($F != $self->_last_print_F || ($F == $self->_last_print_F && $self->_advance == 0)) {
# We are setting a (potentially) new speed or a discharge event happend since the last speed change, so we calculate the new advance amount.
# We are setting a (potentially) new speed or a discharge event happened since the last speed change, so we calculate the new advance amount.

# First calculate relative flow rate (mm of filament over mm of travel)
my $rel_flow_rate = $info->{dist_E} / $info->{dist_XY};
Expand Down
7 changes: 4 additions & 3 deletions lib/Slic3r/GUI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ our $Settings = {
nudge_val => 1,
rotation_controls => 'z',
reload_hide_dialog => 0,
reload_behavior => 0
reload_behavior => 0,
reload_preserve_trafo => 1
},
};

Expand Down Expand Up @@ -227,7 +228,7 @@ sub OnInit {
if ($response =~ /^obsolete ?= ?([a-z0-9.-]+,)*\Q$Slic3r::VERSION\E(?:,|$)/) {
my $res = Wx::MessageDialog->new(undef, "A new version is available. Do you want to open the Slic3r website now?",
'Update', wxYES_NO | wxCANCEL | wxYES_DEFAULT | wxICON_INFORMATION | wxICON_ERROR)->ShowModal;
Wx::LaunchDefaultBrowser('http://slic3r.org/') if $res == wxID_YES;
Wx::LaunchDefaultBrowser('https://slic3r.org/') if $res == wxID_YES;
} else {
Slic3r::GUI::show_info(undef, "You're using the latest version. No updates are available.") if $manual_check;
}
Expand Down Expand Up @@ -385,7 +386,7 @@ sub check_version {
threads->create(sub {
my $ua = LWP::UserAgent->new;
$ua->timeout(10);
my $response = $ua->get('http://slic3r.org/updatecheck');
my $response = $ua->get('https://slic3r.org/updatecheck');
Wx::PostEvent($self, Wx::PlThreadEvent->new(-1, $VERSION_CHECK_EVENT,
threads::shared::shared_clone([ $response->is_success, $response->decoded_content, $manual_check ])));

Expand Down
7 changes: 3 additions & 4 deletions lib/Slic3r/GUI/3DScene.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ sub new {
# wxWidgets expect the attrib list to be ended by zero.
push(@$attrib, 0);

# we request a depth buffer explicitely because it looks like it's not created by
# we request a depth buffer explicitly because it looks like it's not created by
# default on Linux, causing transparency issues
my $self = $class->SUPER::new($parent, -1, Wx::wxDefaultPosition, Wx::wxDefaultSize, 0, "", $attrib);

if (Wx::wxVERSION >= 3.000003) {
# Wx 3.0.3 contains an ugly hack to support some advanced OpenGL attributes through the attribute list.
# The attribute list is transferred between the wxGLCanvas and wxGLContext constructors using a single static array s_wglContextAttribs.
# Immediatelly force creation of the OpenGL context to consume the static variable s_wglContextAttribs.
# Immediately force creation of the OpenGL context to consume the static variable s_wglContextAttribs.
$self->GetContext();
}

Expand Down Expand Up @@ -1331,8 +1331,7 @@ sub load_object {
my $volume = $model_object->volumes->[$volume_idx];
foreach my $instance_idx (@$instance_idxs) {
my $instance = $model_object->instances->[$instance_idx];
my $mesh = $volume->mesh->clone;
$instance->transform_mesh($mesh);
my $mesh = $volume->get_transformed_mesh($instance);

my $color_idx;
if ($self->color_by eq 'volume') {
Expand Down
4 changes: 2 additions & 2 deletions lib/Slic3r/GUI/AboutDialog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ sub new {
'<br /><br />' .
'<font>' .
'Copyright &copy; 2011-2017 Alessandro Ranellucci. <br />' .
'<a href="http://slic3r.org/">Slic3r</a> is licensed under the ' .
'<a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License, version 3</a>.' .
'<a href="https://slic3r.org/">Slic3r</a> is licensed under the ' .
'<a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License, version 3</a>.' .
'<br /><br /><br />' .
'Contributions by Henrik Brix Andersen, Vojtech Bubnik, Nicolas Dandrimont, Mark Hindess, Petr Ledvina, Joseph Lenox, Y. Sapir, Mike Sheldrake, Kliment Yanev and numerous others. ' .
'Manual by Gary Hodgson. Inspired by the RepRap community. <br />' .
Expand Down
2 changes: 1 addition & 1 deletion lib/Slic3r/GUI/BedShapeDialog.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The bed shape dialog.
# The dialog opens from Print Settins tab -> Bed Shape: Set...
# The dialog opens from Print Settings tab -> Bed Shape: Set...

package Slic3r::GUI::BedShapeDialog;
use strict;
Expand Down
6 changes: 3 additions & 3 deletions lib/Slic3r/GUI/ColorScheme.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ our $DEFAULT_COLORSCHEME = 1;
our $SOLID_BACKGROUNDCOLOR = 0;
our @SELECTED_COLOR = (0, 1, 0);
our @HOVER_COLOR = (0.4, 0.9, 0); # Hover over Model
our @TOP_COLOR = (10/255,98/255,144/255); # TOP Backgroud color
our @BOTTOM_COLOR = (0,0,0); # BOTTOM Backgroud color
our @TOP_COLOR = (10/255,98/255,144/255); # TOP Background color
our @BOTTOM_COLOR = (0,0,0); # BOTTOM Background color
our @BACKGROUND_COLOR = @TOP_COLOR; # SOLID background color
our @GRID_COLOR = (0.2, 0.2, 0.2, 0.4); # Grid color
our @GROUND_COLOR = (0.8, 0.6, 0.5, 0.4); # Ground or Plate color
Expand Down Expand Up @@ -130,7 +130,7 @@ sub getSolarized { # add this name to Preferences.pm
@BED_SKIRT = map { ceil($_ * 255) } @COLOR_BASE01; # Brim/Skirt
@BED_CLEARANCE = map { ceil($_ * 255) } @COLOR_BLUE; # not sure what that does
@BED_DARK = map { ceil($_ * 255) } @COLOR_BASE01; # not sure what that does
@BACKGROUND255 = map { ceil($_ * 255) } @BACKGROUND_COLOR; # Backgroud color, this time RGB
@BACKGROUND255 = map { ceil($_ * 255) } @BACKGROUND_COLOR; # Background color, this time RGB

# 2DToolpaths.pm colors : LAYERS Tab
@TOOL_DARK = @COLOR_BASE01; # Brim/Skirt
Expand Down
4 changes: 2 additions & 2 deletions lib/Slic3r/GUI/MainFrame.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sub new {

# initialize status bar
$self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, -1);
$self->{statusbar}->SetStatusText("Version $Slic3r::VERSION - Remember to check for updates at http://slic3r.org/");
$self->{statusbar}->SetStatusText("Version $Slic3r::VERSION - Remember to check for updates at https://slic3r.org/");
$self->SetStatusBar($self->{statusbar});

$self->{loaded} = 1;
Expand Down Expand Up @@ -308,7 +308,7 @@ sub _init_menubar {
});
$helpMenu->AppendSeparator();
wxTheApp->append_menu_item($helpMenu, "Slic3r &Website", 'Open the Slic3r website in your browser', sub {
Wx::LaunchDefaultBrowser('http://slic3r.org/');
Wx::LaunchDefaultBrowser('https://slic3r.org/');
});
my $versioncheck = wxTheApp->append_menu_item($helpMenu, "Check for &Updates...", 'Check for new Slic3r versions', sub {
wxTheApp->check_version(1);
Expand Down
Loading