Fix compilation on Linux.
This commit is contained in:
parent
e5b77e08de
commit
ce7717e450
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ float SlicingAdaptive::cusp_height(float z, float cusp_value, int ¤t_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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue