mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
Semi-working Boost.Polygon medial axis. Hangs after perimeters, though. Needs pruning and chaining
This commit is contained in:
parent
f9642786d3
commit
07a4c37c4c
4 changed files with 37 additions and 22 deletions
|
@ -224,6 +224,16 @@ sub make_perimeters {
|
|||
# process thin walls by collapsing slices to single passes
|
||||
if (@thin_walls) {
|
||||
my @p = map @{$_->medial_axis($pspacing)}, @thin_walls;
|
||||
if (0) {
|
||||
use Slic3r::SVG;
|
||||
Slic3r::SVG::output(
|
||||
"medial_axis.svg",
|
||||
no_arrows => 1,
|
||||
expolygons => \@thin_walls,
|
||||
polylines => \@p,
|
||||
);
|
||||
exit;
|
||||
}
|
||||
my @paths = ();
|
||||
for my $p (@p) {
|
||||
next if $p->length <= $pspacing * 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue