Polygon cut using TCut or TCutG

Hi there,

Probably a noob question, but:

I have points points that I draw using a TGraph (TGraphErrors) on a Canvas (red points on the picture attached) and I define a closed area (the green triangle).

How is it possible using TCut (or even TCutG) to select (and be able to store the data so they can be manipulated) only the red dots INSIDE that area ??

Thank you very much for your support.

TGraph does not have a direct interface with TCutG to do that. But this can done using IsInside.

Hi there,

Thank you for your reply.
I never heard of IsInside, but I’ll have a look.
Thank you again

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.