Added a method borrowed from prusa3d/Slic3r that tests if two surfaces are compatible.

This commit is contained in:
Joseph Lenox 2018-07-18 22:39:44 -05:00
parent b15b5a7d98
commit 7d135252b0

View File

@ -149,6 +149,15 @@ inline void polygons_append(Polygons &dst, SurfacesPtr &&src)
}
}
inline bool surfaces_could_merge(const Surface &s1, const Surface &s2)
{
return
s1.surface_type == s2.surface_type &&
s1.thickness == s2.thickness &&
s1.thickness_layers == s2.thickness_layers &&
s1.bridge_angle == s2.bridge_angle;
}
} // namespace Slic3r
#endif