mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Add support for custom bed shapes
This commit is contained in:
parent
9053cdca5d
commit
abf38d4027
2 changed files with 55 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue