浏览代码

assertion

Former-commit-id: 0e7bcc9c4f03040fc6758658f615518883abd5ea
Alec Jacobson 7 年之前
父节点
当前提交
08bda6db8b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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:
     {