Bugfix: horizontal projection for high-res models might show corrupted result
This commit is contained in:
parent
8d2c651ef2
commit
7f917671ab
1 changed files with 1 additions and 1 deletions
|
@ -585,8 +585,8 @@ sub horizontal_projection {
|
|||
push @f, Slic3r::Polygon->new([ map [ @{$self->vertices->[$_]}[X,Y] ], @$facet ]);
|
||||
}
|
||||
|
||||
$_->make_counter_clockwise for @f;
|
||||
my $scale_vector = Math::Clipper::integerize_coordinate_sets({ bits => 32 }, @f);
|
||||
$_->make_counter_clockwise for @f; # do this after scaling, as winding order might change while doing that
|
||||
my $union = union_ex([ Slic3r::Geometry::Clipper::offset(\@f, 10000) ]);
|
||||
Math::Clipper::unscale_coordinate_sets($scale_vector, $_) for @$union;
|
||||
return $union;
|
||||
|
|
Loading…
Reference in a new issue