mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00

ConcentricGapFill pattern was used for internal narrow solid infill. Use arachne engine instead to remove gap fill inside the pattern and improve the extrusion path Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I758d7c72eb71cc37026b7cebf746cc345014c3f5 (cherry picked from commit 0b6bacd21a091afc13d7b36a69e5b10f155bc6f8)
31 lines
837 B
C++
31 lines
837 B
C++
//Copyright (c) 2020 Ultimaker B.V.
|
|
//CuraEngine is released under the terms of the AGPLv3 or higher.
|
|
|
|
#ifndef UTILS_POLYGONS_SEGMENT_INDEX_H
|
|
#define UTILS_POLYGONS_SEGMENT_INDEX_H
|
|
|
|
#include <vector>
|
|
|
|
#include "PolygonsPointIndex.hpp"
|
|
|
|
namespace Slic3r::Arachne
|
|
{
|
|
|
|
/*!
|
|
* A class for iterating over the points in one of the polygons in a \ref Polygons object
|
|
*/
|
|
class PolygonsSegmentIndex : public PolygonsPointIndex
|
|
{
|
|
public:
|
|
PolygonsSegmentIndex() : PolygonsPointIndex(){};
|
|
PolygonsSegmentIndex(const Polygons *polygons, unsigned int poly_idx, unsigned int point_idx) : PolygonsPointIndex(polygons, poly_idx, point_idx){};
|
|
|
|
Point from() const { return PolygonsPointIndex::p(); }
|
|
|
|
Point to() const { return PolygonsSegmentIndex::next().p(); }
|
|
};
|
|
|
|
} // namespace Slic3r::Arachne
|
|
|
|
|
|
#endif//UTILS_POLYGONS_SEGMENT_INDEX_H
|