mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
SLA gizmo - fixed support points rendering (depth is now correctly accounted for)
This commit is contained in:
parent
672cf5d45f
commit
5966dcb78e
4 changed files with 43 additions and 46 deletions
|
@ -199,7 +199,7 @@ void SLAAutoSupports::process(const std::vector<ExPolygons>& slices, const std::
|
|||
float centroids_dist = (bottom->centroid - top.centroid).norm();
|
||||
// Penalization resulting from centroid offset:
|
||||
// bottom.supports_force *= std::min(1.f, 1.f - std::min(1.f, (1600.f * layer_height) * centroids_dist * centroids_dist / bottom.area));
|
||||
bottom->supports_force *= std::min(1.f, 1.f - std::min(1.f, 80.f * centroids_dist * centroids_dist / bottom->area));
|
||||
bottom->supports_force *= std::min(1.f, 1.f - std::min(1.f, 0.1f * centroids_dist * centroids_dist / bottom->area));
|
||||
// Penalization resulting from increasing polygon area:
|
||||
bottom->supports_force *= std::min(1.f, 20.f * bottom->area / top.area);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue