Browse Source

directed_edge_orientations templates

Teseo Schneider 6 years ago
parent
commit
e4507bbe99

+ 7 - 7
include/igl/directed_edge_orientations.cpp

@@ -1,16 +1,16 @@
 // This file is part of libigl, a simple c++ geometry processing library.
 // This file is part of libigl, a simple c++ geometry processing library.
-// 
+//
 // Copyright (C) 2015 Alec Jacobson <[email protected]>
 // Copyright (C) 2015 Alec Jacobson <[email protected]>
-// 
-// This Source Code Form is subject to the terms of the Mozilla Public License 
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can 
+//
+// This Source Code Form is subject to the terms of the Mozilla Public License
+// v. 2.0. If a copy of the MPL was not distributed with this file, You can
 // obtain one at http://mozilla.org/MPL/2.0/.
 // obtain one at http://mozilla.org/MPL/2.0/.
 #include "directed_edge_orientations.h"
 #include "directed_edge_orientations.h"
 
 
 template <typename DerivedC, typename DerivedE>
 template <typename DerivedC, typename DerivedE>
 IGL_INLINE void igl::directed_edge_orientations(
 IGL_INLINE void igl::directed_edge_orientations(
-  const Eigen::PlainObjectBase<DerivedC> & C,
-  const Eigen::PlainObjectBase<DerivedE> & E,
+  const Eigen::MatrixBase<DerivedC> & C,
+  const Eigen::MatrixBase<DerivedE> & E,
   std::vector<
   std::vector<
       Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & Q)
       Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & Q)
 {
 {
@@ -25,5 +25,5 @@ IGL_INLINE void igl::directed_edge_orientations(
 
 
 #ifdef IGL_STATIC_LIBRARY
 #ifdef IGL_STATIC_LIBRARY
 // Explicit template instantiation
 // Explicit template instantiation
-template void igl::directed_edge_orientations<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&, std::vector<Eigen::Quaternion<double, 0>, Eigen::aligned_allocator<Eigen::Quaternion<double, 0> > >&);
+template void igl::directed_edge_orientations<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -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&, std::vector<Eigen::Quaternion<double, 0>, Eigen::aligned_allocator<Eigen::Quaternion<double, 0> > >&);
 #endif
 #endif

+ 7 - 7
include/igl/directed_edge_orientations.h

@@ -1,9 +1,9 @@
 // This file is part of libigl, a simple c++ geometry processing library.
 // This file is part of libigl, a simple c++ geometry processing library.
-// 
+//
 // Copyright (C) 2014 Alec Jacobson <[email protected]>
 // Copyright (C) 2014 Alec Jacobson <[email protected]>
-// 
-// This Source Code Form is subject to the terms of the Mozilla Public License 
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can 
+//
+// This Source Code Form is subject to the terms of the Mozilla Public License
+// v. 2.0. If a copy of the MPL was not distributed with this file, You can
 // obtain one at http://mozilla.org/MPL/2.0/.
 // obtain one at http://mozilla.org/MPL/2.0/.
 #ifndef IGL_DIRECTED_EDGE_ORIENTATIONS_H
 #ifndef IGL_DIRECTED_EDGE_ORIENTATIONS_H
 #define IGL_DIRECTED_EDGE_ORIENTATIONS_H
 #define IGL_DIRECTED_EDGE_ORIENTATIONS_H
@@ -23,12 +23,12 @@ namespace igl
   //   C  #C by 3 list of edge vertex positions
   //   C  #C by 3 list of edge vertex positions
   //   E  #E by 2 list of directed edges
   //   E  #E by 2 list of directed edges
   // Outputs:
   // Outputs:
-  //   Q  #E list of quaternions 
+  //   Q  #E list of quaternions
   //
   //
   template <typename DerivedC, typename DerivedE>
   template <typename DerivedC, typename DerivedE>
   IGL_INLINE void directed_edge_orientations(
   IGL_INLINE void directed_edge_orientations(
-    const Eigen::PlainObjectBase<DerivedC> & C,
-    const Eigen::PlainObjectBase<DerivedE> & E,
+    const Eigen::MatrixBase<DerivedC> & C,
+    const Eigen::MatrixBase<DerivedE> & E,
     std::vector<
     std::vector<
       Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & Q);
       Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & Q);
 }
 }