inital phase of refactoring, segmentation should now build graph of connected sections

This commit is contained in:
PavelMikus 2022-06-30 17:10:51 +02:00
parent 263e16ca92
commit 0a8f70c1ba
5 changed files with 620 additions and 17 deletions

View file

@ -30,24 +30,14 @@ struct Params {
};
struct SupportPoint {
SupportPoint(const Vec3f &position, float weight);
SupportPoint(const Vec3f &position, float force,const Vec3f& direction);
Vec3f position;
float weight;
};
struct CurledFilament {
CurledFilament(const Vec3f &position, float estimated_height);
explicit CurledFilament(const Vec3f &position);
Vec3f position;
float estimated_height;
float force;
Vec3f direction;
};
struct Issues {
std::vector<SupportPoint> supports_nedded;
std::vector<CurledFilament> curling_up;
void add(const Issues &layer_issues);
bool empty() const;
std::vector<SupportPoint> support_points;
};
std::vector<size_t> quick_search(const PrintObject *po, const Params &params = Params { });