next | previous | forward | backward | up | top | index | toc | Macaulay2 website
ConvexInterface :: mConvexHullFaces

mConvexHullFaces -- Faces of a convex hull.

Synopsis

Description

Returns a list of

- a Matrix A with the vertices of the convex hull of L in its rows

- a list of lists with the faces of the convex hull sorted by increasing dimension.

The vertices of the faces are represented by the indices of the rows of A.

This uses the Convex functions convHull and faces.

-- -*- M2-comint -*- {* hash: 1681883405 *}
--loading configuration for package "ConvexInterface" from file /home/member/dgrayson/.Macaulay2/init-ConvexInterface.m2
--loading configuration for package "MapleInterface" from file /home/member/dgrayson/.Macaulay2/init-MapleInterface.m2
i1 : L={vector {1,0,0},vector {-1,0,0},vector {0,1,0},vector {0,-1,0},vector {0,0,1},vector {0,0,-1}}

o1 = {| 1 |, | -1 |, | 0 |, | 0  |, | 0 |, | 0  |}
      | 0 |  | 0  |  | 1 |  | -1 |  | 0 |  | 0  |
      | 0 |  | 0  |  | 0 |  | 0  |  | 1 |  | -1 |

o1 : List

Ways to use mConvexHullFaces :

For the programmer

The object mConvexHullFaces is a method function with options.