Closed xarthurx closed 2 years ago
I tried to add one line for cy::Vec
before this line:
https://github.com/cemyuksel/cyCodeBase/blob/fb063c3532fb7000a6a32c578e6c7285310979d9/cyVector.h#L47
as
template <typename T, int N> class Vec;
But it does not work. My knowledge is a bit limited here...
Namespaces solve such problems. You may need to be specific about the namespace in your code using cy::Vec
instead of just Vec
.
By the way, cyPoint.h is for backward compatibility. You should use cyVector.h instead.
Namespaces solve such problems. You may need to be specific about the namespace in your code using
cy::Vec
instead of justVec
. By the way, cyPoint.h is for backward compatibility. You should use cyVector.h instead.
cyVector.h
does not include the type cy::Point3f
that is needed by the Poisson Sampling method?
Namespaces solve such problems. You may need to be specific about the namespace in your code using
cy::Vec
instead of justVec
. By the way, cyPoint.h is for backward compatibility. You should use cyVector.h instead.
cyVector.h
does not include the typecy::Point3f
that is needed by the Poisson Sampling method?
OK, I see it now.
I can use the new cy::Vec3f
similar to what cy::Point3f
. the codebase now use similar terms as the eigen
lib, all "point" is treated as "Vector".
However, you may want to change the code snippets in the tutorial here: http://www.cemyuksel.com/cyCodeBase/soln/poisson_disk_sampling.html
headerA.h:
sourceA.cpp:
main.h
Error:
It seems the definition of
cv::Vec
is somehow mixed withcy::Vec
.commenting this line: https://github.com/cemyuksel/cyCodeBase/blob/fb063c3532fb7000a6a32c578e6c7285310979d9/cyPoint.h#L48 resolves the problem temporarily.
Is it possible to fix it from the code side?