mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
Faster support generation. Includes a new implementation of the Douglas-Peucker algorithm
This commit is contained in:
parent
94e673e050
commit
eba7c10018
9 changed files with 166 additions and 183 deletions
|
@ -109,7 +109,6 @@ sub subdivide {
|
|||
my $len = Slic3r::Geometry::line_length([ $self->[$i-1], $self->[$i] ]);
|
||||
my $num_points = int($len / $max_length) - 1;
|
||||
$num_points++ if $len % $max_length;
|
||||
next unless $num_points;
|
||||
|
||||
# $num_points is the number of points to add between $i-1 and $i
|
||||
my $spacing = $len / ($num_points + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue