thanks once more for the very nice software polymake is.
I've been trying to generate some pictures of 3d polytopes to include via tikz to a latex document. The output looks good, except that it seems certain facets in the front are drawn too early in the tikz code, so they are not really shown in the front.
Below is a working example. In general, there are facets in the front that appear behind facets in the back.
Code: Select all
$M=new Matrix<Rational>([[1,1,3,6,10],[1,1,3,10,6],[1,11,5,2,2],[1,11,2,5,2],[1,11,2,2,5],[1,10,6,3,1],[1,10,6,1,3],[1,10,3,6,1],[1,1,6,3,10],[1,10,3,1,6],[1,10,1,6,3],[1,1,6,10,3],[1,10,1,3,6],[1,6,10,3,1],[1,1,10,3,6],[1,6,10,1,3],[1,6,3,10,1],[1,1,10,6,3],[1,2,2,5,11],[1,6,3,1,10],[1,6,1,10,3],[1,2,2,11,5],[1,6,1,3,10],[1,5,11,2,2],[1,5,2,11,2],[1,5,2,2,11],[1,3,10,6,1],[1,3,10,1,6],[1,3,6,10,1],[1,3,6,1,10],[1,3,1,10,6],[1,2,5,2,11],[1,3,1,6,10],[1,2,11,5,2],[1,2,11,2,5],[1,2,5,11,2]]);
$P=new Polytope<Rational>(VERTICES=>$M);
$projP=projection_full($P);
tikz($projP->VISUAL,File=>"try.tikz");
Thanks a lot!