Removing offset2 from Perl bindings and other minor cleanup.

This commit is contained in:
Vojtech Bubnik 2021-05-06 14:29:20 +02:00
parent 1c6333e557
commit f16d4953be
6 changed files with 4 additions and 32 deletions

View file

@ -15,22 +15,6 @@ using namespace Slic3r;
namespace Slic3r {
ClipperLib::Path mittered_offset_path_scaled(const Points& contour, const std::vector<float>& deltas, double miter_limit);
#if 0
static Points mittered_offset_path_scaled_points(const Points& contour, const std::vector<float>& deltas, double miter_limit)
{
Points out;
ClipperLib::Path scaled = mittered_offset_path_scaled(contour, deltas, miter_limit);
for (ClipperLib::IntPoint& pt : scaled) {
pt.X += CLIPPER_OFFSET_SCALE_ROUNDING_DELTA;
pt.Y += CLIPPER_OFFSET_SCALE_ROUNDING_DELTA;
pt.X >>= CLIPPER_OFFSET_POWER_OF_2;
pt.Y >>= CLIPPER_OFFSET_POWER_OF_2;
out.emplace_back(coord_t(pt.x()), coord_t(pt.y()));
}
return out;
}
#endif
}
static ExPolygon spirograph_gear_1mm()