Inside versus outside: Object inside other object

The property "Object inside other object" detects whether an object is inside the area covered by some other object above it. In this context it is irrelevant, which object is on top and which is below, and also whether one or the other object or both are opaque or transparent.

The configuration options for a check based on the "Object inside other object" property can be seen below.

The "Consider" option defines the set of objects for which it shall be determined whether any of these objects is inside the area covered by some other object from the set of objects defined by "Check against".

In this context, it is very important to understand the meaning of area covered by an object: the area covered by an object is the area where the object draws something.

  • For a circle filled with red color, that area is a circle (including everything inside the border of that circle).
  • For circle shaped line drawn in red, the area of that circular line object is just the area where the line is drawn: a thin red stripe going around in a circular fashion, but not the area inside the circular line.

Sample files

The example below makes use of the check Object inside other object.kfpx and the PDF file six red squares below and six green circles on top.pdf which are available for download:

In the screenshot shown below, it can be seen how only the one red square completely inside the area taken by a green circle is detected.

Counter to what some may expect, the red square "inside" the green circular line is not detected. This is by design: the area of the green circular line is just the area where the green line is drawn.

Note: In the sample file, first six red squares are painted, followed by six green circles.

0 Comments

Send Your Comment

E-Mail me when someone replies to this comment