mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Incomplete work for porting simplify() to XS
This commit is contained in:
1 parent
7475762a27
commit
518798beb3
24 files changed
+121
-41
No files matched your search
@@ -27,14 +27,6 @@ sub remove_acute_vertices {
|
||||
polyline_remove_acute_vertices($self);
|
||||
}
|
||||
|
||||
sub simplify {
|
||||
my $self = shift;
|
||||
my $tolerance = shift || 10;
|
||||
|
||||
my $simplified = Boost::Geometry::Utils::linestring_simplify($self->pp, $tolerance);
|
||||
return __PACKAGE__->new(@$simplified);
|
||||
}
|
||||
|
||||
sub bounding_box {
|
||||
my $self = shift;
|
||||
return Slic3r::Geometry::BoundingBox->new_from_points($self);
|
||||
|
||||
Reference in new issue
Block a user