Răsfoiți Sursa

assertion

Former-commit-id: 0e7bcc9c4f03040fc6758658f615518883abd5ea
Alec Jacobson 7 ani în urmă
părinte
comite
08bda6db8b
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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/.
 // obtain one at http://mozilla.org/MPL/2.0/.
 #include "point_mesh_squared_distance.h"
 #include "point_mesh_squared_distance.h"
 #include "AABB.h"
 #include "AABB.h"
+#include <cassert>
 
 
 template <
 template <
   typename DerivedP,
   typename DerivedP,
@@ -29,6 +30,7 @@ IGL_INLINE void igl::point_mesh_squared_distance(
   switch(dim)
   switch(dim)
   {
   {
     default:
     default:
+      assert(false && "Unsupported dim");
       // fall-through and pray
       // fall-through and pray
     case 3:
     case 3:
     {
     {