mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:24:24 +08:00
New wkt() method for debugging
This commit is contained in:
parent
1db614a5a9
commit
e21c806ee9
@ -19,6 +19,11 @@ sub boost_linestring {
|
|||||||
return Boost::Geometry::Utils::linestring([@$self, $self->[0]]);
|
return Boost::Geometry::Utils::linestring([@$self, $self->[0]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub wkt {
|
||||||
|
my $self = shift;
|
||||||
|
return sprintf "POLYGON((%s))", join ',', map "$_->[0] $_->[1]", @$self;
|
||||||
|
}
|
||||||
|
|
||||||
sub is_counter_clockwise {
|
sub is_counter_clockwise {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return Slic3r::Geometry::Clipper::is_counter_clockwise($self);
|
return Slic3r::Geometry::Clipper::is_counter_clockwise($self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user