WIP Brim improvements:

Fix of connecting the brim polylines: Don't connect closed contours.
Some optimizations, documentation etc.
This commit is contained in:
Vojtech Bubnik 2021-02-04 15:48:36 +01:00
parent d1dfbb31ab
commit ab6cc7085e
3 changed files with 52 additions and 38 deletions

View file

@ -15,7 +15,8 @@ namespace EdgeGrid {
class Grid
{
public:
Grid();
Grid() = default;
Grid(const BoundingBox &bbox) : m_bbox(bbox) {}
~Grid();
void set_bbox(const BoundingBox &bbox) { m_bbox = bbox; }
@ -295,8 +296,8 @@ protected:
BoundingBox m_bbox;
// Grid dimensions.
coord_t m_resolution;
size_t m_rows;
size_t m_cols;
size_t m_rows = 0;
size_t m_cols = 0;
// Referencing the source contours.
// This format allows one to work with any Slic3r fixed point contour format