vtkPolygon::PointInPolygon return wrong result
VTK Version 9.2.6
The following code snippet
double point[] = {0, 400000, 500000};
double point_number = 6;
double points[] = {
0, 163209, 896257,
0, 153098, 106528,
0, 855809, 144387,
0, 418566, 367964,
0, 364134, 603550,
0, 909457, 794492
};
double mock_bounds[] = {
0, 0,
153098, 909457,
106528, 896257
};
double mock_normal[] = {1, 0, 0};
int value = vtkPolygon::PointInPolygon(
point,
mock_point_number,
mock_points,
mock_bounds,
mock_normal
);
std::cout << value << std::endl;
Returns 1 on VTK 9.2 instead of 0 (See red G point)