With TH2Poly there is no concept of “low edge” of a bin as the bins can be any polygons.
Can you provide a small example macro showing what you mean bin “low edge” in the case of TH2Poly.
Ok, I guess I can only repeat what I already said:
With TH2Poly there is no concept of “low edge” of a bin as the bins can be any polygons. (see help)
TMath::IsInside() is used to compute if a point is inside a bin or not.
The point is that for TH2Poly the concept of Low and Up edge doesn’t exist . You mentioned the TH1 help:
bin = 1; first bin with low-edge xlow INCLUDED
bin = nbins; last bin with upper-edge xup EXCLUDED
We cannot do that with TH2Poly. There is no lower and upper edge. How do you define the lower and upper edge when a bin has several thousands of edges ?
Ok, I understand that this could work only for simple cases. A flag could change the default to include whatever touches any line but it would not follow the TH1 convention anyway.