Browse Source

assertion

Former-commit-id: 0e7bcc9c4f03040fc6758658f615518883abd5ea
Alec Jacobson 7 years ago
parent
commit
08bda6db8b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/igl/point_mesh_squared_distance.cpp

+ 2 - 0
include/igl/point_mesh_squared_distance.cpp

@@ -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:
     {