getFacet
Purpose
Extract facet of the polyhedron specified by the inequality index.
Syntax
Q = P.getFacet()
Q = P.getFacet(index)
Description
Extract the facet of the polyhedron
specified by the inequality index. The returned
polyhedron
is formed by rewriting this ineqality as equality constraint.
The polyhedron
is given as

Given the index, the polyhedron
is built as

The polyhedron
must be given in its minimal representation (irredundant) H-representation,
otherwise an error is thrown.
Input Arguments
P |
Polyhedron in H-representation
Class: Polyhedron
|
index |
Index of a facet from polyhedron which is less or equal than the number of hyperplanes defining .
If omited, all facets will be returned as a polyhedron array.
Class: double
|
Output Arguments
Q |
Polyhedron that represents lower-dimensional facet of the Polyhedron .
Class: Polyhedron
|
Example(s)
Example
1
Create random polyhedron
and make it irredundant. P = ExamplePoly.randHrep;
P.minHRep();
Extract the third facet of the polyhedron. Q = P.getFacet(3);
Plot the polyhedra. P.plot; hold on; Q.plot('LineWidth',3,'LineStyle','-.');

See Also
isadjacent
◀ |
facetinteriorpoints |
|
affinemap |
▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch