mirror of https://github.com/vitalif/openscad
Fix potential memory alignment issue with eigen. This might make us dependent on eigen3, but it's about time anyway
parent
e05a9745a3
commit
5aa01edb93
|
@ -28,11 +28,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
#ifdef __APPLE__
|
||||
std::vector<Vector2d, Eigen::aligned_allocator<Vector2d> > points;
|
||||
#else
|
||||
std::vector<Vector2d> points;
|
||||
#endif
|
||||
std::vector<Path> paths;
|
||||
std::vector<Dim> dims;
|
||||
|
||||
|
|
|
@ -4,10 +4,13 @@
|
|||
#include <Eigen/Core>
|
||||
#include <Eigen/Geometry>
|
||||
#include <Eigen/Dense>
|
||||
#include<Eigen/StdVector>
|
||||
|
||||
EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Vector2d)
|
||||
using Eigen::Vector2d;
|
||||
EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Vector3d)
|
||||
using Eigen::Vector3d;
|
||||
using Eigen::Vector3f;
|
||||
|
||||
typedef Eigen::AlignedBox<double, 3> BoundingBox;
|
||||
using Eigen::Matrix3f;
|
||||
using Eigen::Matrix3d;
|
||||
|
|
Loading…
Reference in New Issue