Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-07-06 14:18:58 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-06 14:18:58 +0400
commit532ff3cde93afd3842e6f4d1a967208ec146012c (patch)
tree3c29a24386aef51b17b564c671c2728ee5bb465b /lib
parent985af5ee565e6b7b0c375cb277df7099544f485d (diff)
Apply the Polyline constructor refactoring to the newslice code
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/TriangleMesh.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Slic3r/TriangleMesh.pm b/lib/Slic3r/TriangleMesh.pm
index 329070617..5f58d0e20 100644
--- a/lib/Slic3r/TriangleMesh.pm
+++ b/lib/Slic3r/TriangleMesh.pm
@@ -233,7 +233,7 @@ sub make_loops {
if ((defined $loop[0][I_EDGE_A_ID] && defined $loop[-1][I_EDGE_B_ID] && $loop[0][I_EDGE_A_ID] == $loop[-1][I_EDGE_B_ID])
|| (defined $loop[0][I_A_ID] && defined $loop[-1][I_B_ID] && $loop[0][I_A_ID] == $loop[-1][I_B_ID])) {
# loop is complete!
- push @polygons, Slic3r::Polygon->new([ map $_->[I_A], @loop ]);
+ push @polygons, Slic3r::Polygon->new(map $_->[I_A], @loop);
Slic3r::debugf " Discovered %s polygon of %d points\n",
($polygons[-1]->is_counter_clockwise ? 'ccw' : 'cw'), scalar(@{$polygons[-1]})
if $Slic3r::debug;