mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 15:51:47 +08:00
Fix collision detection for brim
This commit is contained in:
parent
3427b29a93
commit
cde662cb51
@ -680,8 +680,9 @@ sub make_brim {
|
|||||||
for my $i (reverse 1 .. $num_loops) {
|
for my $i (reverse 1 .. $num_loops) {
|
||||||
# JT_SQUARE ensures no vertex is outside the given offset distance
|
# JT_SQUARE ensures no vertex is outside the given offset distance
|
||||||
# -0.5 because islands are not represented by their centerlines
|
# -0.5 because islands are not represented by their centerlines
|
||||||
# TODO: we need the offset inwards/offset outwards logic to avoid overlapping extrusions
|
# (first offset more, then step back - reverse order than the one used for
|
||||||
push @loops, offset2(\@islands, ($i - 1.5) * $flow->scaled_spacing, +1.0 * $flow->scaled_spacing, undef, JT_SQUARE);
|
# perimeters because here we're offsetting outwards)
|
||||||
|
push @loops, offset2(\@islands, ($i + 1.0) * $flow->scaled_spacing, -1.5 * $flow->scaled_spacing, undef, JT_SQUARE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@{$self->brim} = map Slic3r::ExtrusionLoop->pack(
|
@{$self->brim} = map Slic3r::ExtrusionLoop->pack(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user