outerApprox

Purpose

Computes outer bounding hypercube of a polyhedron.

Syntax

B = P.outerApprox
P.outerApprox

Description

B = P.outerApprox computes the smallest axis-aligned hypercube B that contains the polyhedron P. The lower and upper bounds of the hypercube are also stored in P.Internal.lb and P.Internal.ub, respectively.

Use P.outerApprox if you only want the bounds to be written to P.Internal, but do not need the explicit bounding hypercube to be constructed.

Input Arguments

P

Polyhedron.

Class: Polyhedron

Output Arguments

B

Bounding hypercube.

Class: Polyhedron

Example(s)

Example 1

We have a lower dimensional polyhedron in 3D.
 P = Polyhedron('A',randn(9,3),'b',ones(9,1),'Ae', randn(1,3),'be',0.5);
 Compute the bounding box
 B = P.outerApprox; 
 Plot the sets such that the outer approximation is wired. 
 P.plot; hold on; B.plot('wire',true,'LineWidth',3) 

../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/outerapprox_img_1.png


© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk