Insert Polyhedron to PolyUnion object.
U = add(U,P)
U.add(P)
U |
The object of the PolyUnion class. Class: PolyUnion |
P |
A Polyhedron or an array of polyhedra to be added to the union. Class: Polyhedron |
U |
Union of the sets. Class: Union |
Z = ExamplePoly.randZono;Triangulate the zonotope Z.
T = Z.triangulate
Array of 8 polyhedra.We know that the polyhedra T are not overlapping, bounded and in full-dimension. We can create a union of first four polyhedra
U = PolyUnion('Set',T(1:4),'Overlaps',false,'Bounded',true,'FullDim',true)
PolyUnion in the dimension 2 with 4 polyhedra. Properties of the union: Overlaps: 0 Bounded: 1 FullDim: 1 Functions : nonePlot the union
U.plot
U.add(T(5:end))
PolyUnion in the dimension 2 with 8 polyhedra. Properties of the union: Overlaps: 0 Bounded: 1 FullDim: 1 Functions : noneWe can plot the union
U.plot
◀ | contains | display | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch