Test if the union of polyhedra contains overlaps.
ts = U.isConnected
ts = isConnected(U)
U |
Union of polyhedra in the same dimension. Class: PolyUnion |
ts |
True if union of polyhedra has overlaps and false otherwise. Class: logical Allowed values:
|
P(1) = ExamplePoly.randHrep;
P(2) = ExamplePoly.randHrep;
P(3) = ExamplePoly.randHrep;Create union out of these polyhedra without specifying the properties
U = PolyUnion(P)
PolyUnion in the dimension 2 with 3 polyhedra. Functions : nonePlot the polyhedra to see that they overlap.
P.plot;
U.isOverlapping
ans = 1The information about the overlaps can be accessed in
U.Internal.Overlaps
ans = 1
A = Polyhedron('Ae',[1 -0.5 2; -1 -4 0],'be',[-1;0.8]);Generate box in 3D
B = Polyhedron('lb',[-1;-1;-1],'ub',[1;1;1]);Create union out of these polyhedra
U = PolyUnion([A,B]);Plot to see the sets if they overlap
U.plot('LineWidth',2,'alpha',0.1)
U.isOverlapping
ans = 1The result of the operation is stored under
U.Internal.Overlaps
ans = 1
◀ | outerapprox | plus | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch