mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 08:05:53 +08:00
Added a method borrowed from prusa3d/Slic3r that tests if two surfaces are compatible.
This commit is contained in:
parent
b15b5a7d98
commit
7d135252b0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user