mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Better implementation of the external motion planner
This commit is contained in:
parent
27090f83bd
commit
c98e9515ed
4 changed files with 46 additions and 28 deletions
|
@ -45,7 +45,7 @@ sub BUILD {
|
|||
for my $i (0 .. $#points) {
|
||||
for my $j (($i+1) .. $#points) {
|
||||
my $line = Slic3r::Line->new($points[$i], $points[$j]);
|
||||
if ($expolygon->encloses_line($line, scale Slic3r::Geometry::epsilon)) {
|
||||
if ($expolygon->encloses_line($line, $tolerance)) {
|
||||
my $dist = $line->length * ($crosses_perimeter ? CROSSING_FACTOR : 1);
|
||||
$edges->{$points[$i]}{$points[$j]} = $dist;
|
||||
$edges->{$points[$j]}{$points[$i]} = $dist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue