Add support for custom bed shapes

This commit is contained in:
Alessandro Ranellucci committed 2014-06-17 00:27:22 +02:00
1 parent 9053cdca5d
commit abf38d4027
2 files changed
+55 -3

No files matched your search

+9
View File
@@ -237,6 +237,15 @@ sub mesh {
return $mesh;
}
# flattens everything to a single mesh
sub raw_mesh {
my $self = shift;
my $mesh = Slic3r::TriangleMesh->new;
$mesh->merge($_->raw_mesh) for @{$self->objects};
return $mesh;
}
# this method splits objects into multiple distinct objects by walking their meshes
sub split_meshes {
my $self = shift;