Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/libnest2d/libnest2d/libnest2d.hpp')
-rw-r--r--xs/src/libnest2d/libnest2d/libnest2d.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/xs/src/libnest2d/libnest2d/libnest2d.hpp b/xs/src/libnest2d/libnest2d/libnest2d.hpp
index 37b5fea95..1aa672447 100644
--- a/xs/src/libnest2d/libnest2d/libnest2d.hpp
+++ b/xs/src/libnest2d/libnest2d/libnest2d.hpp
@@ -254,7 +254,13 @@ public:
return sl::isInside(transformedShape(), sh.transformedShape());
}
+ inline bool isInside(const RawShape& sh) const
+ {
+ return sl::isInside(transformedShape(), sh);
+ }
+
inline bool isInside(const _Box<TPoint<RawShape>>& box) const;
+ inline bool isInside(const _Circle<TPoint<RawShape>>& box) const;
inline void translate(const Vertex& d) BP2D_NOEXCEPT
{
@@ -471,6 +477,11 @@ inline bool _Item<RawShape>::isInside(const _Box<TPoint<RawShape>>& box) const {
return _Item<RawShape>::isInside(rect);
}
+template<class RawShape> inline bool
+_Item<RawShape>::isInside(const _Circle<TPoint<RawShape>>& circ) const {
+ return ShapeLike::isInside<RawShape>(transformedShape(), circ);
+}
+
/**
* \brief A wrapper interface (trait) class for any placement strategy provider.
*