mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
Refactoring. Point objects are now plain arrayrefs. Slicing is 30% faster.
This commit is contained in:
parent
774717c8bb
commit
e410410dc7
10 changed files with 44 additions and 55 deletions
|
@ -87,7 +87,7 @@ sub add_surface {
|
|||
my (@vertices) = @_;
|
||||
|
||||
# convert arrayref points to Point objects
|
||||
@vertices = map Slic3r::Point->cast($_), @vertices;
|
||||
@vertices = map Slic3r::Point->new($_), @vertices;
|
||||
|
||||
my $surface = Slic3r::Surface->new(
|
||||
contour => Slic3r::Polyline::Closed->new(points => \@vertices),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue