
the container. A new item P
m
, m > n will be placed
in the container, keeping the layout feasible, i.e. no
items collide or protrude from the container. The CFR
represents such a set of translations for item P
m
(see
Fig. 3).
Definition 2.5. The CFR is the set of all translations,
that, when applied to a specific item, place this item
in the interior of the container without colliding with
the already placed items.
Figure 3: The CFR is filled with a hatch pattern. The item
to be placed is not filled and the already placed items are
filled with gray.
When there are no placed items, the CFR is the
IFP. The first step to determine the CFR is to obtain
the corresponding IFP. The next step is to subtract the
NFPs induced by the placed items. The CFR, denoted
Π(C ,P ,P
m
), can be determined using the expression:
Π(C ,P ,P
m
) = Λ(C ,P
m
) −
[
P
i
∈P
i(P
i
) ⊖ i(P
m
). (4)
3 NON-REGULARIZED
BOOLEAN OPERATIONS
As shownin the previoussection, the determination of
the CFR requires the use of Boolean operations over
polygons. However, those Boolean operations can-
not be regularized as they assume that a polygon con-
tains its boundary. The CFR is determined through
Boolean operations applied to NFPs and IFPs. As
NFPs represent forbidden translations, their bound-
aries represent allowable translations. The NFP’s
boundaries represent translations that place the move-
able item touching the fixed item, which is not for-
bidden. Then, for the determination of the CFR, it is
necessary to use non-regularized Boolean operations.
Fig. 4 shows an example where four items are al-
ready placed and the moveable item can be placed be-
tween the already placed items. The reference point
of the moveable item can be placed at the common
boundaries of the original NFPs shown in Fig. 4.(a).
The union of all NFPs must result in a polygon
with internal edges (degenerated edges) as shown in
Fig. 4.(b). However, when regularized Boolean oper-
ations are used, the final result is shown in Fig. 4.(c)
without the internal edges. Fig. 5 shows a similar sit-
uation where the the union of all original NFPs must
result in a polygon with one internal vertex (degener-
ated vertex).
(a) (b) (c)
Figure 4: (a) On top, the moveable item with a central ref-
erence point. On the bottom, four fixed items (filled with a
hatch pattern) and the four induced NFPs represented by its
oriented contours. (b) CFR, with its four degenerated edges
shown (dashed lines). (c) Result of the regularized union of
all the NFPs, which does not have degenerated edges.
(a) (b) (c)
Figure 5: (a) Desired placement of a rectangular item with
a central reference point. Fixed items are represented by
hatched polygons. (b) The two NFPs represented by its ori-
ented contours. (c) CFR, with its degenerated vertex shown
(internal vertex).
The result of non-regularized Boolean operation
may have edges or vertices that do not belong to the
boundary. They are called degenerated edges and de-
generated vertices. When not specified, the edges or
vertices are part of the contour. When moveable items
are placed on degenerated vertices or edges usually
implies in a more compact layout. This affirmation is
discussed in subsection 4.1.
In this work, new non-regularized Boolean opera-
tions were developed. Generally, regularized Boolean
operations are implemented in three steps (Vatti,
1992): edge intersection determination, edge and con-
tour labeling and edge and contour collection. The
new algorithm developed in this work has the same
three steps, and the main differences are in edge
and contour labeling and edge and contour collection.
They are associated with the creation and collection of
degenerated edges and vertices. As equation (4) uses
exclusively unions and subtractions, the intersection
was not implemented. Degenerated edges and ver-
tices are created in situations where they exist in the
results but not in the input polygons, as can be seen
on Fig. 6 (union) and Fig. 7 (subtraction). The collec-
tion of degenerated edges and vertices is a decision
to maintain or eliminate them. The developed algo-
IRREGULAR PLACEMENT PROBLEM - Solved with a 2-Level Algorithm and Collision Free Region
81