mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 05:36:02 +08:00
Fix for ugly code.
This commit is contained in:
parent
feb2041c7b
commit
0d9a74bb6d
@ -755,9 +755,12 @@ public:
|
|||||||
return m_compact_bridges;
|
return m_compact_bridges;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T> inline
|
template<class T> inline const Pillar& pillar(T id) const {
|
||||||
typename std::enable_if<std::is_integral<T>::value, const Pillar&>::type
|
static_assert(std::is_integral<T>::value, "Invalid index type");
|
||||||
pillar(T id) const { assert(id >= 0); return m_pillars.at(size_t(id)); }
|
assert(id >= 0 && id < m_pillars.size() &&
|
||||||
|
id < std::numerix_limits<size_t>::max());
|
||||||
|
return m_pillars[size_t(id)];
|
||||||
|
}
|
||||||
|
|
||||||
const Pad& create_pad(const TriangleMesh& object_supports,
|
const Pad& create_pad(const TriangleMesh& object_supports,
|
||||||
const ExPolygons& baseplate,
|
const ExPolygons& baseplate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user