One more retraction optimization

This commit is contained in:
Alessandro Ranellucci 2014-12-25 11:37:54 +01:00
parent 70f454c693
commit 5a0f4eac8d
4 changed files with 22 additions and 3 deletions

View file

@ -120,6 +120,17 @@ Layer::make_slices()
}
}
template <class T>
bool
Layer::any_internal_region_slice_contains(const T &item) const
{
FOREACH_LAYERREGION(this, layerm) {
if ((*layerm)->slices.any_internal_contains(item)) return true;
}
return false;
}
template bool Layer::any_internal_region_slice_contains<Line>(const Line &item) const;
template <class T>
bool
Layer::any_internal_region_fill_surface_contains(const T &item) const