How to cut part of the object if it is inside a specific area? like showed on attached image.
Looks like stencil should be used, but I am not really sure how to do it.
If the area is a rectangle you can use a scissor rectangle. It sets that only part of the viewport gets drawn while everything outside of that is not drawn.
This was achieved using stencil. case closed.