Test if the union of polyhedra is convex.
ts = U.isConvex
ts = isConvex(U)
U |
Union of polyhedra in the same dimension. Class: PolyUnion |
ts |
True if union of polyhedra is convex and false otherwise. Class: logical Allowed values:
|
P = 10*ExamplePoly.randVrep;Triangulate polyhedron to get a partition.
T = P.triangulate
Array of 4 polyhedra.Create union out of these polyhedra without specifying the properties
U = PolyUnion(T)
PolyUnion in the dimension 2 with 4 polyhedra. Functions : noneCheck if the union is convex
U.isConvex
ans = 1We can plot the union to see that it is truly convex.
U.plot
◀ | getfunction | copy | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch