Polyhedral Sets - Maple Help

Online Help

All Products    Maple    MapleSim

Polyhedral Sets

The new PolyhedralSets package brings new functionality to Maple 2015 for working with sets defined either by a set of equalities and inequalities (H-Representation), or by a set of vertices and rays (V-Representation). The added functionality lets you explore the geometric and topological properties of a set, perform standard set operations, and apply linear transformations.






Creating Sets


The Structure of a Set

Working with and Transforming Sets

Support for n-Dimensional Sets

See Also

Creating Sets

Polyhedral Sets can be created from a list of equalities and non-strict inequalities. Redundant relations are removed and the remaining relations are put into a canonical form that speeds up later operations.

relationsx+y2,x+2 y3,x+y+z=1:

polyset PolyhedralSetrelations;



Sets can also be created from a list of vertices and rays. The package automatically prunes the list of vertices and rays to capture only the extreme vertices and rays of the set.

vertices, rays1,2,12,12,0,1, 2,2:

polysetPolyhedralSetvertices, rays;



The set is displayed as its H-Representation, but the conversion back to its V-Representation is simple.




The ExampleSets  subpackage streamlines the creation of common sets. See ExampleSets- NDimensions and ExampleSets- ThreeDimensions.





The sets can be rendered in 2-D or 3-D, whether they are bounded or unbounded. The style of the visualization is fully customizable for seamless integration into any webpage, document, or presentation.

c  ExampleSets:-Cube:




Plotc, faceoptions=transparency = 0.5,  color=Fill Niagara Green,edgeoptions=color=Line Niagara Burgundy, thickness=5,vertexoptions=color=Point Niagara 9, symbolsize=40, axes=none





The Structure of a Set

Finding the faces of a set allows you to explore its structure. Faces of any dimension can be obtained, from the (n - 1) faces of a set in n dimensions right down to its vertices.


t_faces Facest



t_vertices Facest,dimension=0



The graph of the faces is easily generated, illuminating which faces share points with which other faces. The structure of the set can then be further explored by leveraging the functionality of the GraphTheory package.


c_graph,c_plotGraphc, output=graph,plot:







Working with and Transforming Sets

The dual of a polyhedral set can be computed, whether it is bounded or not, and whether it includes the origin or not. The bounded sets that include the origin show how vertices map to faces in the dual and vice versa.


Plotoctaprism, orientation=43,80,0


octaprism_dual:={Coordinates:x,y,zRelations:47321z1960147321y196014732119601x,47321z1960147321y196014732119601x,z19601y473211x,z19601y473211x,z+19601y473211x,z+19601y473211x,47321y1960147321z196014732119601x,47321y19601+47321z196014732119601x,x47321z19601+47321y19601+4732119601,x47321z19601+47321y19601+4732119601,,(6 more constraints)


Plotoctaprism_dual, orientation=43,80,0


c  TranslateExampleSets:-Cube, 2,2,2








Support for linear matrix transformations, translations, and projections is included.

Linear transformations and translations (blue and green) applied to the semiregular cuboctahedron ...

The elementary set functionality, such as the intersection, convex hull, inclusion tests, and equality test provide user-friendly means of working with polyhedral sets.

Form the convex hull (green) of a cube (red) and a tetrahedron (blue)


Support for n-Dimensional Sets

Sets of higher dimensions are supported by the algorithms in the package, so that properties like the volume of a set can be calculated for any set.

s5  ExampleSets:-Simplex5






Likewise, the set operators can work in any dimension,

ExampleSets:-Simplex5 subset ExampleSets:-Hypercube5



and the topological properties of sets can be explored similarly.


See Also

PolyhedralSets Package (Overview), ExampleSets- NDimensions, ExampleSets- ThreeDimensions, GraphTheory Package (Overview)