Fixed a crash when the number of perimeters is set to zero with Arachne.

This commit is contained in:
Lukáš Hejl 2022-05-31 13:16:19 +02:00
parent c76c497234
commit e631ac171a
2 changed files with 5 additions and 10 deletions

View file

@ -455,6 +455,9 @@ void removeColinearEdges(Polygons &thiss, const double max_deviation_angle = 0.0
const std::vector<VariableWidthLines> &WallToolPaths::generate()
{
if (this->inset_count < 1)
return toolpaths;
const coord_t smallest_segment = Slic3r::Arachne::meshfix_maximum_resolution;
const coord_t allowed_distance = Slic3r::Arachne::meshfix_maximum_deviation;
const coord_t epsilon_offset = (allowed_distance / 2) - 1;