Fixed some more compiler warnings

This commit is contained in:
Vojtech Bubnik 2023-08-30 16:13:28 +02:00
parent 90fd88bf12
commit 138a41c870
3 changed files with 5 additions and 3 deletions

View File

@ -68,7 +68,9 @@ private:
template<bool IncludeBoundary = false, class BoundingBoxType, class It, class = IteratorOnly<It>> template<bool IncludeBoundary = false, class BoundingBoxType, class It, class = IteratorOnly<It>>
static void construct(BoundingBoxType &out, It from, It to) static void construct(BoundingBoxType &out, It from, It to)
{ {
if (from != to) { if (from == to) {
out.defined = false;
} else {
auto it = from; auto it = from;
out.min = it->template cast<typename PointType::Scalar>(); out.min = it->template cast<typename PointType::Scalar>();
out.max = out.min; out.max = out.min;

View File

@ -1611,7 +1611,7 @@ void PrintObject::discover_vertical_shells()
to_polygons(m_layers[idx_layer + 1]->lslices) : to_polygons(m_layers[idx_layer + 1]->lslices) :
Polygons{}; Polygons{};
object_volume = intersection(shrinked_bottom_slice, shrinked_upper_slice); object_volume = intersection(shrinked_bottom_slice, shrinked_upper_slice);
internal_volume = closing(polygonsInternal, SCALED_EPSILON); internal_volume = closing(polygonsInternal, float(SCALED_EPSILON));
} }
// The regularization operation may cause scattered tiny drops on the smooth parts of the model, filter them out // The regularization operation may cause scattered tiny drops on the smooth parts of the model, filter them out

View File

@ -3022,7 +3022,7 @@ void GLGizmoCut3D::toggle_model_objects_visibility()
{ {
bool has_active_volume = false; bool has_active_volume = false;
std::vector<std::shared_ptr<SceneRaycasterItem>>* raycasters = m_parent.get_raycasters_for_picking(SceneRaycaster::EType::Volume); std::vector<std::shared_ptr<SceneRaycasterItem>>* raycasters = m_parent.get_raycasters_for_picking(SceneRaycaster::EType::Volume);
for (const auto raycaster : *raycasters) for (const std::shared_ptr<SceneRaycasterItem> &raycaster : *raycasters)
if (raycaster->is_active()) { if (raycaster->is_active()) {
has_active_volume = true; has_active_volume = true;
break; break;