Macaulay2 » Documentation
Packages » SRdeformations :: boundaryOfPolytope
next | previous | forward | backward | up | index | toc

# boundaryOfPolytope -- The boundary of a polytope.

- Usage:
    `boundaryOfPolytope(C)`
- Inputs:
  - C, an embedded complex,
- Outputs:
  - an embedded complex,

## Description

Returns the boundary of a complex C which is a polytope.

    i1 : R=QQ[x_0..x_4]

    o1 = R

    o1 : PolynomialRing

    i2 : C=simplex(R)

    o2 = 4: x x x x x
             0 1 2 3 4

    o2 : complex of dim 4 embedded in dim 4 (printing facets)
         equidimensional, simplicial, F-vector {1, 5, 10, 10, 5, 1}, Euler = 0

    i3 : isPolytope C

    o3 = true

    i4 : boundaryOfPolytope C

    o4 = 3: x x x x  x x x x  x x x x  x x x x  x x x x
             0 1 2 3  0 1 2 4  0 1 3 4  0 2 3 4  1 2 3 4

    o4 : complex of dim 3 embedded in dim 4 (printing facets)
         equidimensional, simplicial, F-vector {1, 5, 10, 10, 5, 0}, Euler = -1

## Ways to use boundaryOfPolytope:

- `boundaryOfPolytope(Complex)`

## For the programmer

The object boundaryOfPolytope is a method function.

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