ClipperLib: Optimized PointInPolygon() to calculate cross products
with int64s instead of doubles. Polygon / ExPolygon: contains() reworked to use ClipperLib::PointInPolygon(). The Slic3r own implementation was not robust. Fixed test_perimeters after recent refactoring (sorting of extrusions into LayerIslands)
This commit is contained in:
parent
5eaec515ba
commit
9dca8403fe
8 changed files with 37 additions and 38 deletions
|
@ -470,6 +470,8 @@ SCENARIO("Some weird coverage test", "[Perimeters]")
|
|||
LayerRegion *layerm = layer->get_region(0);
|
||||
layerm->m_slices.clear();
|
||||
layerm->m_slices.append({ expolygon }, stInternal);
|
||||
layer->lslices = { expolygon };
|
||||
layer->lslices_ex = { { get_extents(expolygon) } };
|
||||
|
||||
// make perimeters
|
||||
layer->make_perimeters();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue