mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
New --cut feature
This commit is contained in:
parent
37c7b958d4
commit
fe1691c151
7 changed files with 117 additions and 21 deletions
|
@ -108,7 +108,7 @@ my $cube = {
|
|||
my $lower = Slic3r::TriangleMesh->new;
|
||||
$m->cut(0, $upper, $lower);
|
||||
#$upper->repair; $lower->repair;
|
||||
is $upper->facets_count, 10, 'upper mesh has all facets except those belonging to the slicing plane';
|
||||
is $upper->facets_count, 12, 'upper mesh has all facets except those belonging to the slicing plane';
|
||||
is $lower->facets_count, 0, 'lower mesh has no facets';
|
||||
}
|
||||
{
|
||||
|
@ -116,8 +116,8 @@ my $cube = {
|
|||
my $lower = Slic3r::TriangleMesh->new;
|
||||
$m->cut(10, $upper, $lower);
|
||||
#$upper->repair; $lower->repair;
|
||||
is $upper->facets_count, 14, 'upper mesh has the right number of facets';
|
||||
is $lower->facets_count, 14, 'lower mesh has the right number of facets';
|
||||
is $upper->facets_count, 16, 'upper mesh has the right number of facets';
|
||||
is $lower->facets_count, 16, 'lower mesh has the right number of facets';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue