mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-11 03:32:24 +00:00
Some initial work for porting slice()
This commit is contained in:
1 parent
8607c559c7
commit
346c17d483
6 files changed
+126
-1
No files matched your search
@@ -44,4 +44,11 @@ my $cube = {
|
||||
ok abs($m->size->[0] - sqrt(2)*40) < 1E-4, 'rotate';
|
||||
}
|
||||
|
||||
{
|
||||
my $m = Slic3r::TriangleMesh::XS->new;
|
||||
$m->ReadFromPerl($cube->{vertices}, $cube->{facets});
|
||||
$m->Repair;
|
||||
my $result = $m->slice([2,4,8,6,8,10,12,14,16,18]);
|
||||
}
|
||||
|
||||
__END__
|
||||
Reference in new issue
Block a user