templatize NormalConeT over Vector instead of Scalar to allow for other types of vectors (eg Eigen)

This commit is contained in:
Max Lyon
2019-12-19 14:04:59 +01:00
parent 9c9ea15840
commit 52d3ad9332
3 changed files with 16 additions and 14 deletions

View File

@@ -60,6 +60,7 @@
#include <OpenMesh/Core/Geometry/VectorT.hh>
#include <OpenMesh/Core/Utils/vector_traits.hh>
//== NAMESPACES ===============================================================
@@ -77,13 +78,14 @@ namespace OpenMesh {
the center normal and the opening angle.
**/
template <typename Scalar>
template <typename Vector>
class NormalConeT
{
public:
// typedefs
typedef VectorT<Scalar, 3> Vec3;
typedef typename vector_traits<Vector>::value_type Scalar;
typedef Vector Vec3;
//! default constructor (not initialized)