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:
Noisyfox
2025-04-14 23:23:08 +08:00
committed by GitHub
parent b795708852
commit c90b3a2cce
4 changed files with 24 additions and 12 deletions

View File

@@ -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>()};
}