Test if the union of polyhedra form a connected union.
ts = U.isConnected
ts = isConnected(U)
U |
Union of polyhedra in the same dimension. Class: PolyUnion |
ts |
True if union of polyhedra is connected and false otherwise. Class: logical Allowed values:
|
P(1) = Polyhedron('lb',[-1;0],'ub',[-1;1]);Shift the polyhedron P(1)
P(2) = P(1) + [1;0];
P(3) = P(1) + [2;0];Plot the polyhedra to see that they are not connected.
P.plot('LineWidth',3); axis([-2 2 -1 2]);
U = PolyUnion(P)
PolyUnion in the dimension 2 with 3 polyhedra. Functions : noneCheck if the union is connected
U.isConnected
ans = 0The information about the connectivity can be accessed in
U.Internal.Connected
ans = 0
◀ | fplot | polyunion | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch