Wrong declaration of VtkPolygon::IntersectPolygonWithPolygon
In the VtkPolygon.h, bounds2
in the definition is double[3]
static int IntersectPolygonWithPolygon(int npts, double *pts, double bounds[6],
int npts2, double *pts2,
double bounds2[3], double tol,
double x[3]);
But in the VtkPolygon.cxx, bounds2
in the implementation is double[6]
int vtkPolygon::IntersectPolygonWithPolygon(int npts, double *pts,double bounds[6],
int npts2, double *pts2,
double bounds2[6], double tol2,
double x[3])
The declaration in header is wrong. It is not affect the C++ interface because the dimension is not checked. When we use python interface, we will get this error "TypeError: IntersectPolygonWithPolygon argument 6: expected a sequence of 3 values, got 6 values".
The issues exists from VTK 7.0.