add top surface gap_infill

This commit is contained in:
Wang YB
2024-03-08 09:11:53 +08:00
parent cea37f9f7d
commit 2a8cdc3414
8 changed files with 321 additions and 25 deletions

View File

@@ -184,6 +184,10 @@ public:
void collect_polylines(Polylines &dst) const override { if (! this->polyline.empty()) dst.emplace_back(this->polyline); }
void collect_points(Points &dst) const override { append(dst, this->polyline.points); }
double total_volume() const override { return m_attributes.mm3_per_mm * unscale<double>(length()); }
//w21
void set_width(float set_val) { m_attributes.width = set_val; }
void set_height(float set_val) { m_attributes.height = set_val; }
void set_mm3_per_mm(float set_val) { m_attributes.mm3_per_mm = set_val; }
private:
void _inflate_collection(const Polylines &polylines, ExtrusionEntityCollection* collection) const;