Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cartesian product polyhedra

Are there any book or paper citations on how the Cartesian product of polyhedra is computed within the polyhedron base class?

cartesian product polyhedra

Are there any book or paper citations on how the Cartesian product of polyhedra is computed within the polyhedron base class?class? Consider the following example input:

P1 = Polyhedron(vertices = [[1,1], [2,3], [3,0]], rays = [[3,2], [5,2]])
P2 = Polyhedron(vertices = [[6,0]], rays = [[1,9], [1,3]])
ExampleP = P1.product(P2)
ExampleP.Vrepresentation()

The output is:

A ray in the direction (0, 0, 1, 3),
A ray in the direction (0, 0, 1, 9),
A vertex at (1, 1, 6, 0),
A vertex at (2, 3, 6, 0),
A vertex at (3, 0, 6, 0),
A ray in the direction (3, 2, 0, 0),
A ray in the direction (5, 2, 0, 0)