Vector[12]d.h: Fix types of slice()
Triangle: Avoid division by zero in minimum_altitude
offset_mesh: Remove nearly degenerate faces as well