FIX: Color Bleed in slicer
github: 3681 jira: 6450 Change-Id: Icb6274f7ddb238c238c133b95167310b1af905f7
This commit is contained in:
parent
b5fbcc9e8f
commit
0ba47b8e06
|
@ -1933,6 +1933,9 @@ std::vector<std::vector<ExPolygons>> multi_material_segmentation_by_painting(con
|
|||
min_z = std::min(min_z, facet[p_idx].z());
|
||||
}
|
||||
|
||||
if (is_equal(min_z, max_z))
|
||||
continue;
|
||||
|
||||
// Sort the vertices by z-axis for simplification of projected_facet on slices
|
||||
std::sort(facet.begin(), facet.end(), [](const Vec3f &p1, const Vec3f &p2) { return p1.z() < p2.z(); });
|
||||
|
||||
|
|
Loading…
Reference in New Issue