mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
Merge some BS1.7 changes:
internal_solid_infill_pattern
This commit is contained in:
@@ -1057,6 +1057,16 @@ void chain_and_reorder_extrusion_paths(std::vector<ExtrusionPath> &extrusion_pat
|
||||
reorder_extrusion_paths(extrusion_paths, chain_extrusion_paths(extrusion_paths, start_near));
|
||||
}
|
||||
|
||||
std::vector<size_t> chain_expolygons(const ExPolygons &input_exploy) {
|
||||
Points points;
|
||||
for (const ExPolygon &exploy : input_exploy) {
|
||||
BoundingBox bbox;
|
||||
bbox = get_extents(exploy);
|
||||
points.push_back(bbox.center());
|
||||
}
|
||||
return chain_points(points);
|
||||
}
|
||||
|
||||
std::vector<size_t> chain_points(const Points &points, Point *start_near)
|
||||
{
|
||||
auto segment_end_point = [&points](size_t idx, bool /* first_point */) -> const Point& { return points[idx]; };
|
||||
|
||||
Reference in New Issue
Block a user