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