From ca0488892cd1db1ec093679a60eae0600f101475 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 14 Mar 2024 11:04:44 +0100 Subject: [PATCH] Add eigen constructur to point3 and direction3 --- src/ifcgeom/taxonomy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcgeom/taxonomy.h b/src/ifcgeom/taxonomy.h index a9c5b88161..7a5d7f1d32 100644 --- a/src/ifcgeom/taxonomy.h +++ b/src/ifcgeom/taxonomy.h @@ -436,6 +436,7 @@ typedef item const* ptr; template struct cartesian_base : public item, public eigen_base { cartesian_base() : eigen_base() {} + cartesian_base(const Eigen::Vector3d& c) : eigen_base(c) {} cartesian_base(double x, double y, double z = 0.) : eigen_base(Eigen::Vector3d(x, y, z)) {} }; @@ -455,6 +456,7 @@ typedef item const* ptr; } point3() : cartesian_base() {} + point3(const Eigen::Vector3d& c) : cartesian_base(c) {} point3(double x, double y, double z = 0.) : cartesian_base(x, y, z) {} }; @@ -474,6 +476,7 @@ typedef item const* ptr; } direction3() : cartesian_base() {} + direction3(const Eigen::Vector3d& c) : cartesian_base(c) {} direction3(double x, double y, double z = 0.) : cartesian_base(x, y, z) {} };