Replies: 6 comments 10 replies
-
The type Point_3 would still not be an Eigen type. Adding conversions between Point_3 and Eigen would probably help that user more. Making Point_3 derive from Matrix could achieve some of that. I didn't check recently if NewKernel_d still worked with |
Beta Was this translation helpful? Give feedback.
-
Would adding a template parameter to the Kernel to specify the point type work? That way we could define the default type to be what it is now, but the user could override it and could build a kernel with its own point type. |
Beta Was this translation helpful? Give feedback.
-
Even if you got rid of Type_equality_wrapper, Kernel_23 assumes that a point can be created with Point_3(x,y,z), that coordinates can be accessed with |
Beta Was this translation helpful? Give feedback.
-
What could be done (but that is a big work) is to create a model of CGAL
|
Beta Was this translation helpful? Give feedback.
-
My idea would be something like this:
I admit I don't know too much about CGAL internals. Could something like that work? |
Beta Was this translation helpful? Give feedback.
-
One thing I forgot to mention: using Eigen types safely (without a lot of special code) probably requires C++17 (aligned new). |
Beta Was this translation helpful? Give feedback.
-
This was a question on stackoverflow
I am wondering how far we can get by replacing
std::array<FT_, 3>
withEigen::Matrix<FT,3,1>
and the somemake_array()
calls inVector_3.h
. This might even work forFT
different from double. Any thoughts @sloriot and @mglisse ?Beta Was this translation helpful? Give feedback.
All reactions