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

Heartwaresync #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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