Compute the projection of the Polyhedron.
p = P.projection(dims, method)
p = projection(P, dims, method)
p = projection(P, dims, method, solver)
P |
Polyhedron in any format Class: Polyhedron |
dims |
Dimensions upon which to project Class: double |
method |
Sets the method used to compute the projection. If omitted, then the method is
chosen based on the properties of ![]() ![]() Class: char Allowed values:
|
solver |
If "mplp" method is selected, then this argument determines which solver to use for solving MPLP problem.
By default the first parametric solver is selected from the list of available solvers. Class: char |
p |
Projection of ![]() ![]() Class: Polyhedron |
P = ExamplePoly.randVrep('d',3) + [0;0;5];Compute projection:
p = P.projection(1:2)
Polyhedron in R^2 with representations: H-rep : Unknown (call computeHRep() to compute) V-rep (redundant) : Vertices 10 | Rays 0 Functions : nonePlot the result
plot([P,p-[0;1]])
P = ExamplePoly.randHrep('ne',1,'d',3,'nr',1) + [0;0;5];Compute projection:
p = P.projection(1:2)
Polyhedron in R^2 with representations: H-rep (redundant) : Inequalities 4 | Equalities 0 V-rep : Unknown (call computeVRep() to compute) Functions : nonePlot the result
plot([P,p]);
Z = ExamplePoly.randZono('d',5,'n',8);Project onto R3 and plot:
Z.projection(1:3).plot;
◀ | isadjacent | isfullspace | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch