Fix compilation on Linux.

This commit is contained in:
bubnikv 2016-12-12 18:59:35 +01:00
parent e5b77e08de
commit ce7717e450

View file

@ -67,7 +67,7 @@ float SlicingAdaptive::cusp_height(float z, float cusp_value, int &current_facet
continue; continue;
// compute cusp-height for this facet and store minimum of all heights // compute cusp-height for this facet and store minimum of all heights
float normal_z = m_face_normal_z[ordered_id]; float normal_z = m_face_normal_z[ordered_id];
height = std::min(height, (normal_z == 0) ? 9999 : abs(cusp_value / normal_z)); height = std::min(height, (normal_z == 0.f) ? 9999.f : std::abs(cusp_value / normal_z));
} }
} }