Macaulay2 » Documentation
Packages » Polyhedra :: facesAsPolyhedra
next | previous | forward | backward | up | index | toc

# facesAsPolyhedra -- Returns the faces of a polyhedron as actual polyhedra.

- Usage:
    `fP = facesAsPolyhedra(n,P)`
- Inputs:
  - P, a convex polyhedron,
  - n, an integer, codimension of the faces
- Outputs:
  - fP, a list,

## Description

While faces returns a list of lists of indices for the vertices that make up the codimension n faces, this gives a list of actual polyhedra. It is just a small wrapper around faces. Whenever possible, use faces instead.

    i1 : facesAsPolyhedra(1, hypercube 2)

    o1 = {Polyhedron{...1...}, Polyhedron{...1...}, Polyhedron{...1...},
         ------------------------------------------------------------------------
         Polyhedron{...1...}}

    o1 : List

## Ways to use facesAsPolyhedra:

- `facesAsPolyhedra(ZZ,Polyhedron)`

## For the programmer

The object facesAsPolyhedra is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Polyhedra/documentation/documentation.m2:152:0.