mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 15:39:12 +08:00
Add a wkt() method to ExPolygon
This commit is contained in:
parent
50526dea5a
commit
4c8c725eec
@ -59,6 +59,12 @@ sub boost_polygon {
|
||||
return Boost::Geometry::Utils::polygon(@$self);
|
||||
}
|
||||
|
||||
sub wkt {
|
||||
my $self = shift;
|
||||
return sprintf "POLYGON(%s)",
|
||||
join ',', map "($_)", map { join ',', map "$_->[0] $_->[1]", @$_ } @$self;
|
||||
}
|
||||
|
||||
sub offset {
|
||||
my $self = shift;
|
||||
return Slic3r::Geometry::Clipper::offset($self, @_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user