Professional Documents
Culture Documents
P1: A
i
ACt
j
\ Ct
j 1
&& CenVA
i
ACt
j
\ Ct
j 1
P2: A
i
ACt
j
Ct
j 1
&& CenVA
i
ACt
j
\ Ct
j 1
P3: A
i
ACt
j
Ct
j 1
&& CenVA
i
ACt
j
Ct
j 1
P4: A
i
ACt
j
\ Ct
j 1
&& CenVA
i
ACt
j
Ct
j 1
In cases P1 and P2, the agent always step into the next
constrained shape Ct
j 1
. However, in cases P3 and P4, the agents
need to be cleverly dragged into the next constrained shape
Ct
j 1
without colliding with each other.
As illustrated in Fig. 6(b) for case P3, the point P
p
on inner
borders of Ct
j 1
can be found by projecting P3 onto the border of
Ct
j 1
with respect to the nearest distance, and we navigate the
agent to P
b
, which is the intersection point of line P3P
p
and the
Voronoi borders of P3. Then the Voronoi tessellation is updated
according to the new positions of all p
i
. The above two steps are
repeated until P3 reaches P
p
. For P4, we make the agent stay in
Ct
j 1
by changing its target to the point P
v
, which is the
intersection of the predened path from P4 to CenVP4 and
the inner border of Ct
j 1
, as demonstrated in Fig. 6(c). With the
above improvements, Lloyd descent is applicable in variable
domains, inheriting the strengths of maximal-clearance and free-
of-collision.
4. Extension
4.1. Crowd moving and obstacle avoiding
In practice, a crowd tends to preserve or change its formation
while moving along a specic path. The motion of agents in such a
crowd can be decomposed into two parts, one to move forward
along the global path and the other to maintain or form a certain
formation. In this paper, the global path is set interactively in a 3D
domain by using a freehand drawing or B-spline. The motion of
the whole group is implemented by designating a base point on
the constrained shape to anchor to the path, and a direction to
determine the formation orientation. In the example shown in
Fig. 7, the base point is specied as the centroid of the formation
shape, and the direction is set as the normal direction of the
formation and always along the tangent line of the path. Note that
different settings of the base point and direction will generate
various motion results. Here we do not consider the formation
calibration in accordance with curve curvature as in [20]. Fig. 5
Fig. 4. CVT layout under general two-dimensional elliptical Gaussian density
function f x; y e
axx0
2
2bxx0yy
0
cyy
0