mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-09 18:27:00 +00:00
Attempt to speed up outside bed detection (#8869)
* Don't check intersection if points below bed is also inside the bed, when the bed is convex * Skip intersection check if bbox not overlapping * Remove duplicated out of bed check * Faster (but less accurate) bbox test * Merge branch 'main' into dev/faster-outside-check # Conflicts: # src/libslic3r/Model.cpp
This commit is contained in:
@@ -268,7 +268,7 @@ inline BoundingBoxf3 unscaled(const BoundingBox3 &bb) { return {unscaled(bb.min)
|
||||
template<class Tout, class Tin>
|
||||
auto cast(const BoundingBoxBase<Tin> &b)
|
||||
{
|
||||
return BoundingBoxBase<Vec<3, Tout>>{b.min.template cast<Tout>(),
|
||||
return BoundingBoxBase<Vec<2, Tout>>{b.min.template cast<Tout>(),
|
||||
b.max.template cast<Tout>()};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user