mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
ENH: tree support style default to Tree Hybrid
1. tree support style default to Tree Hybrid 2. fix an assert bug with MedialAxis::build: assert(polyline.width.size() == polyline.points.size() * 2 - 2) This is caused by the incorrect clear function of ThickPolyline. Change-Id: I8d6507ad366d253493e2749e0cbac8d3d837ee8a (cherry picked from commit bd31e962c11e82005944bef40b17471075e79898)
This commit is contained in:
parent
d7364900dd
commit
617cb5490b
4 changed files with 16 additions and 13 deletions
|
@ -234,6 +234,10 @@ public:
|
|||
std::reverse(this->width.begin(), this->width.end());
|
||||
std::swap(this->endpoints.first, this->endpoints.second);
|
||||
}
|
||||
void clear() {
|
||||
Polyline::clear();
|
||||
width.clear();
|
||||
}
|
||||
|
||||
std::vector<coordf_t> width;
|
||||
std::pair<bool,bool> endpoints;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue