Reduces the overlapping union to minimal number of sets.
kept = U.reduce
kept = reduce(U)
U |
Union of polyhedra in the same dimension. Class: PolyUnion |
kept |
Vector of logical indices indicating if the region is non-redundant. Class: logical Allowed values:
|
P = 5*ExamplePoly.randHrep;Create another polyhedron that is contained within P
Q = 0.8*P;Create another random polyhedron.
R = ExamplePoly.randVrep+[1;5];Create the union of polyhedra without specifying any properties.
U = PolyUnion([P,Q,R])
PolyUnion in the dimension 2 with 3 polyhedra. Functions : nonePlot the union
U.plot
U.reduce
ans = 1 0 1We can see that the union has now only 2 polyhedra. Plot the reduced union
U.plot
◀ | convexhull | removefunction | ▶ |
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch