|
@@ -6,10 +6,10 @@
|
|
|
|
|
|
template <typename DerivedV, typename DerivedF>
|
|
|
IGL_INLINE void igl::per_corner_normals(
|
|
|
- const Eigen::PlainObjectBase<DerivedV>& V,
|
|
|
- const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
- const double corner_threshold,
|
|
|
- Eigen::PlainObjectBase<DerivedV> & CN)
|
|
|
+ const Eigen::PlainObjectBase<DerivedV>& V,
|
|
|
+ const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
+ const double corner_threshold,
|
|
|
+ Eigen::PlainObjectBase<DerivedV> & CN)
|
|
|
{
|
|
|
using namespace igl;
|
|
|
using namespace Eigen;
|
|
@@ -21,14 +21,30 @@ IGL_INLINE void igl::per_corner_normals(
|
|
|
return per_corner_normals(V,F,FN,VF,corner_threshold,CN);
|
|
|
}
|
|
|
|
|
|
+template <typename DerivedV, typename DerivedF, typename DerivedFN, typename DerivedCN>
|
|
|
+IGL_INLINE void igl::per_corner_normals(
|
|
|
+ const Eigen::PlainObjectBase<DerivedV>& V,
|
|
|
+ const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
+ const Eigen::PlainObjectBase<DerivedFN>& FN,
|
|
|
+ const double corner_threshold,
|
|
|
+ Eigen::PlainObjectBase<DerivedCN> & CN)
|
|
|
+{
|
|
|
+ using namespace igl;
|
|
|
+ using namespace Eigen;
|
|
|
+ using namespace std;
|
|
|
+ vector<vector<int> > VF,VFi;
|
|
|
+ vf(V,F,VF,VFi);
|
|
|
+ return per_corner_normals(V,F,FN,VF,corner_threshold,CN);
|
|
|
+}
|
|
|
+
|
|
|
template <typename DerivedV, typename DerivedF, typename IndexType>
|
|
|
IGL_INLINE void igl::per_corner_normals(
|
|
|
- const Eigen::PlainObjectBase<DerivedV>& /*V*/,
|
|
|
- const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
- const Eigen::PlainObjectBase<DerivedV>& FN,
|
|
|
- const std::vector<std::vector<IndexType> >& VF,
|
|
|
- const double corner_threshold,
|
|
|
- Eigen::PlainObjectBase<DerivedV> & CN)
|
|
|
+ const Eigen::PlainObjectBase<DerivedV>& /*V*/,
|
|
|
+ const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
+ const Eigen::PlainObjectBase<DerivedV>& FN,
|
|
|
+ const std::vector<std::vector<IndexType> >& VF,
|
|
|
+ const double corner_threshold,
|
|
|
+ Eigen::PlainObjectBase<DerivedV> & CN)
|
|
|
{
|
|
|
using namespace igl;
|
|
|
using namespace Eigen;
|
|
@@ -77,4 +93,5 @@ IGL_INLINE void igl::per_corner_normals(
|
|
|
// generated by autoexplicit.sh
|
|
|
template void igl::per_corner_normals<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, double, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
|
|
|
template void igl::per_corner_normals<Eigen::Matrix<double, -1, 3, 1, -1, 3>, Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1>, unsigned int>(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 1, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 1, -1, 3> > const&, std::vector<std::vector<unsigned int, std::allocator<unsigned int> >, std::allocator<std::vector<unsigned int, std::allocator<unsigned int> > > > const&, double, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 1, -1, 3> >&);
|
|
|
+template void igl::per_corner_normals<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, double, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
|
|
|
#endif
|