Former-commit-id: 0e7bcc9c4f03040fc6758658f615518883abd5ea
@@ -7,6 +7,7 @@
// obtain one at http://mozilla.org/MPL/2.0/.
#include "point_mesh_squared_distance.h"
#include "AABB.h"
+#include <cassert>
template <
typename DerivedP,
@@ -29,6 +30,7 @@ IGL_INLINE void igl::point_mesh_squared_distance(
switch(dim)
{
default:
+ assert(false && "Unsupported dim");
// fall-through and pray
case 3: