first implementation, but for overhangs the code is not run for some reason

This commit is contained in:
PavelMikus 2022-11-22 17:05:01 +01:00 committed by Pavel Mikuš
parent 11a7eb86fc
commit 38a287fec4
5 changed files with 149 additions and 4 deletions

View file

@ -137,6 +137,13 @@ public:
tree = AABBTreeLines::build_aabb_tree_over_indexed_lines(this->lines);
}
explicit LinesDistancer(std::vector<LineType> &&lines) : lines(lines)
{
tree = AABBTreeLines::build_aabb_tree_over_indexed_lines(this->lines);
}
LinesDistancer() = default;
// negative sign means inside
std::tuple<Floating, size_t, Vec<2, Floating>> signed_distance_from_lines_extra(const Vec<2, Scalar> &point) const
{