Add support for custom bed shapes

This commit is contained in:
Alessandro Ranellucci 2014-06-17 00:25:52 +02:00
parent 9053cdca5d
commit abf38d4027
2 changed files with 55 additions and 3 deletions

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;