How to define the boundaries of an element to match the element itself

Hi, how to define the boundaries of an element to match the element itself? I understand how to create boundaries in the form of a box, but I do not know how to make the boundaries touch element(as in the photo). And in general, is it possible to implement?

Thanks for help!

These boundaries are defined already for every model - it’s the geometry of said model :sweat_smile:

If instead of “define” you meant more “how to draw / display” - this may be of some help :relieved:

I just want to check if there is a certain element in this object (which is on the picture). And I did it with the help of containsBox().