mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-05 03:54:02 +08:00
Merge branch 'honeycomb-clipping'
This commit is contained in:
commit
8d9d023dd7
@ -79,13 +79,14 @@ sub fill_surface {
|
|||||||
$self->cache->{$cache_id} = [@polygons];
|
$self->cache->{$cache_id} = [@polygons];
|
||||||
}
|
}
|
||||||
|
|
||||||
# build polylines from polygons without re-appending the initial point:
|
# consider polygons as polylines without re-appending the initial point:
|
||||||
# this cuts the last segment on purpose, so that the jump to the next
|
# this cuts the last segment on purpose, so that the jump to the next
|
||||||
# path is more straight
|
# path is more straight
|
||||||
my @paths = map Slic3r::Polyline->new(@$_), map @$_, @{intersection_ex(
|
my @paths = map Slic3r::Polyline->new($_),
|
||||||
$self->cache->{$cache_id},
|
@{ Boost::Geometry::Utils::polygon_multi_linestring_intersection(
|
||||||
$expolygon,
|
$expolygon,
|
||||||
)};
|
$self->cache->{$cache_id},
|
||||||
|
) };
|
||||||
|
|
||||||
return { flow_spacing => $params{flow_spacing} },
|
return { flow_spacing => $params{flow_spacing} },
|
||||||
Slic3r::Polyline::Collection->new(polylines => \@paths)->chained_path;
|
Slic3r::Polyline::Collection->new(polylines => \@paths)->chained_path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user