You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code snippet shows how the input points are generated.
int POINTS = 100;
const double radius = 5;
const double PI = 3.14159265358979323846;
typedef double MyCoord;
struct MyPoint {
MyCoord x;
MyCoord y;
// ...
};
MyPoint* cloud = new MyPoint[POINTS];
// gen some points on the circle
for (int i = 0; i < POINTS; i++) {
double angle = i * PI / 180.0;
cloud[i].x = radius * cos(angle);
cloud[i].y = radius * sin(angle);
}
In case of POINTS = 5, it gives the wrong outcome. In case of POINTS = 100, it hangs.
I have found the root cause is due to unexpected #undef on Macro FP_FAST_FMAF, FP_FAST_FMA and FP_FAST_FMAL by random header file in delabella.cpp on MacOS platform. You may want to add the following #error statements before or after random header to verify the problem.
#ifndef FP_FAST_FMAF
#error FP_FAST_FMAF should be defined for predicates.h
#endif
Though there is no error on Windows platform, it stops the compilation on MacOS platform if you place them after random header file. Therefore, one possible right solution is to move the following Macro definitions after random header file, e.g. right before delabella.h in delabella.cpp.
The following code snippet shows how the input points are generated.
In case of POINTS = 5, it gives the wrong outcome. In case of POINTS = 100, it hangs.
I have found the root cause is due to unexpected #undef on Macro FP_FAST_FMAF, FP_FAST_FMA and FP_FAST_FMAL by random header file in delabella.cpp on MacOS platform. You may want to add the following #error statements before or after random header to verify the problem.
Though there is no error on Windows platform, it stops the compilation on MacOS platform if you place them after random header file. Therefore, one possible right solution is to move the following Macro definitions after random header file, e.g. right before delabella.h in delabella.cpp.
May the author fix this problem?
Thanks,
Haipeng
The text was updated successfully, but these errors were encountered: