next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Polyhedra :: faces(PolyhedralObject)

faces(PolyhedralObject) -- Giving the faces of a polyhedral object.

Synopsis

Description

Returns a HashTable with the faces of a polyhedral object sorted by codimension. The faces are given as lists containing the indices of the rays/vertices of the original object contained in the face.

i1 : fC = faces hypercube 2

o1 = HashTable{0 => {({0, 1, 2, 3}, {})}                                    }
               1 => {({0, 2}, {}), ({1, 3}, {}), ({0, 1}, {}), ({2, 3}, {})}
               2 => {({0}, {}), ({2}, {}), ({1}, {}), ({3}, {})}
               3 => {}

o1 : HashTable
i2 : fC#1

o2 = {({0, 2}, {}), ({1, 3}, {}), ({0, 1}, {}), ({2, 3}, {})}

o2 : List