mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-28 03:01:17 -06:00
Fillers: Removal of old FillRectilinear, using of "override" instead
of "virtual" where applicable.
This commit is contained in:
parent
e77fc43159
commit
e9fa36ea7d
13 changed files with 78 additions and 131 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace Slic3r {
|
||||
|
||||
void FillRectilinear::_fill_surface_single(
|
||||
void FillLine::_fill_surface_single(
|
||||
const FillParams ¶ms,
|
||||
unsigned int thickness_layers,
|
||||
const std::pair<float, Point> &direction,
|
||||
|
|
@ -42,11 +42,6 @@ void FillRectilinear::_fill_surface_single(
|
|||
Lines lines;
|
||||
for (coord_t x = bounding_box.min(0); x <= x_max; x += this->_line_spacing)
|
||||
lines.push_back(this->_line(lines.size(), x, bounding_box.min(1), bounding_box.max(1)));
|
||||
if (this->_horizontal_lines()) {
|
||||
coord_t y_max = bounding_box.max(1) + SCALED_EPSILON;
|
||||
for (coord_t y = bounding_box.min(1); y <= y_max; y += this->_line_spacing)
|
||||
lines.push_back(Line(Point(bounding_box.min(0), y), Point(bounding_box.max(0), y)));
|
||||
}
|
||||
|
||||
// clip paths against a slightly larger expolygon, so that the first and last paths
|
||||
// are kept even if the expolygon has vertical sides
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue