mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 22:35:58 +08:00
#758 safeguards when brim_width < brim_offset
This commit is contained in:
parent
6577367362
commit
903c6c22bc
@ -2216,7 +2216,7 @@ void Print::_make_brim(const Flow &flow, const PrintObjectPtrs &objects, ExPolyg
|
|||||||
unbrimmable_areas = islands;
|
unbrimmable_areas = islands;
|
||||||
|
|
||||||
//get the brimmable area
|
//get the brimmable area
|
||||||
const size_t num_loops = size_t(floor((brim_config.brim_width.value - brim_config.brim_offset.value) / flow.spacing()));
|
const size_t num_loops = size_t(floor(std::max(0.,(brim_config.brim_width.value - brim_config.brim_offset.value)) / flow.spacing()));
|
||||||
ExPolygons brimmable_areas;
|
ExPolygons brimmable_areas;
|
||||||
for (ExPolygon &expoly : islands) {
|
for (ExPolygon &expoly : islands) {
|
||||||
for (Polygon poly : offset(expoly.contour, num_loops * flow.scaled_spacing(), jtSquare)) {
|
for (Polygon poly : offset(expoly.contour, num_loops * flow.scaled_spacing(), jtSquare)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user