replace convex hull computation with KDTree, improve sticking centroid estimation

This commit is contained in:
PavelMikus 2022-06-24 12:30:18 +02:00
parent 9294d5e604
commit 864c85d47e
3 changed files with 65 additions and 74 deletions
src/libslic3r

View file

@ -434,7 +434,7 @@ void PrintObject::generate_support_spots()
Vec3f point = Vec3f(inv_transform * support_point.position);
Vec3f origin = Vec3f(
inv_transform * Vec3f(support_point.position.x(), support_point.position.y(), 0.0f));
selector.enforce_spot(point, origin, 0.5f);
selector.enforce_spot(point, origin, 1.0f);
}
model_volume->supported_facets.set(selector.selector);