WIP Lightning infil: Cleaning up some compiler errors

This commit is contained in:
Vojtech Bubnik 2021-12-01 19:02:37 +01:00
parent 481def3205
commit 9cf483fe08
4 changed files with 4 additions and 5 deletions

View file

@ -73,7 +73,7 @@ protected:
*/
struct UnsupportedCell
{
UnsupportedCell(Point grid_loc, coord_t dist_to_boundary) : loc(loc), dist_to_boundary(dist_to_boundary) {}
UnsupportedCell(Point loc, coord_t dist_to_boundary) : loc(loc), dist_to_boundary(dist_to_boundary) {}
// The position of the center of this cell.
Point loc;
// How far this cell is removed from the ``current_outline`` polygon, the edge of the infill area.

View file

@ -32,7 +32,7 @@ Generator::Generator(const PrintObject &print_object)
const PrintRegionConfig &region_config = print_object.shared_regions()->all_regions.front()->config();
const std::vector<double> &nozzle_diameters = print_config.nozzle_diameter.values;
double max_nozzle_diameter = *std::max_element(nozzle_diameters.begin(), nozzle_diameters.end());
const int infill_extruder = region_config.infill_extruder.value;
// const int infill_extruder = region_config.infill_extruder.value;
const double default_infill_extrusion_width = Flow::auto_extrusion_width(FlowRole::frInfill, float(max_nozzle_diameter));
// Note: There's not going to be a layer below the first one, so the 'initial layer height' doesn't have to be taken into account.
const double layer_thickness = object_config.layer_height;

View file

@ -193,7 +193,7 @@ void Layer::reconnectRoots
if (root_ptr->getLastGroundingLocation())
{
const Point& ground_loc = root_ptr->getLastGroundingLocation().value();
const Point& ground_loc = *root_ptr->getLastGroundingLocation();
if (ground_loc != root_ptr->getLocation())
{
Point new_root_pt;
@ -225,7 +225,7 @@ void Layer::reconnectRoots
);
if (ground.boundary_location)
{
if (ground.boundary_location.value() == root_ptr->getLocation())
if (*ground.boundary_location == root_ptr->getLocation())
continue; // Already on the boundary.
auto new_root = Node::create(ground.p(), ground.p());

View file

@ -148,7 +148,6 @@ public:
return false;
}
void make_perimeters();
void make_fills() { this->make_fills(nullptr, nullptr); };
void make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive::Octree* support_fill_octree);
void make_ironing();