|
@@ -8,6 +8,7 @@
|
|
|
#include "is_intrinsic_delaunay.h"
|
|
|
#include "unique_edge_map.h"
|
|
|
#include "tan_half_angle.h"
|
|
|
+#include "EPS.h"
|
|
|
#include <cassert>
|
|
|
template <
|
|
|
typename Derivedl,
|
|
@@ -84,7 +85,7 @@ IGL_INLINE bool igl::is_intrinsic_delaunay(
|
|
|
const Index c1 = he1/num_faces;
|
|
|
const Index f2 = he2%num_faces;
|
|
|
const Index c2 = he2/num_faces;
|
|
|
- assert( std::abs(l(f1,c1)-l(f2,c2) < igl::EPS<Scalar>()) );
|
|
|
+ assert( std::abs(l(f1,c1)-l(f2,c2)) < igl::EPS<Scalar>());
|
|
|
const Scalar e = l(f1,c1);
|
|
|
const Scalar a = l(f1,(c1+1)%3);
|
|
|
const Scalar b = l(f1,(c1+2)%3);
|
|
@@ -98,6 +99,8 @@ IGL_INLINE bool igl::is_intrinsic_delaunay(
|
|
|
#ifdef IGL_STATIC_LIBRARY
|
|
|
// Explicit template instantiation
|
|
|
// generated by autoexplicit.sh
|
|
|
+template void igl::is_intrinsic_delaunay<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<bool, -1, 3, 0, -1, 3> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<bool, -1, 3, 0, -1, 3> >&);
|
|
|
+// generated by autoexplicit.sh
|
|
|
template bool igl::is_intrinsic_delaunay<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, int, unsigned long>(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, unsigned long);
|
|
|
template void igl::is_intrinsic_delaunay<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<bool, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<bool, -1, -1, 0, -1, -1> >&);
|
|
|
#endif
|