Rewritten the medial axis algorithm, now more robust (don't just prune MAT from endpoints, but validate all single edges)

This commit is contained in:
Alessandro Ranellucci
2016-03-26 01:45:08 +01:00
parent e4147a6bed
commit 7041bb5bd9
7 changed files with 231 additions and 209 deletions
+3 -1
View File
@@ -36,8 +36,10 @@ class Polyline : public MultiPoint {
class ThickPolyline : public Polyline {
public:
std::vector<coordf_t> width;
std::vector<bool> endpoints;
std::pair<bool,bool> endpoints;
ThickPolyline() : endpoints(std::make_pair(false, false)) {};
ThickLines thicklines() const;
void reverse();
};
}