I'm trying to make a visualization of the intersection of a 3D-fan with the hyperplane \( \{z=1\} \). I have made the following code:
Code: Select all
application('fan');
$p = new Polytope<Rational>(POINTS=>[[1,2,0,1],[1,1,1,0],[1,0,2,1],[1,1,0,0],[1,0,1,0],[1,0,0,2]]);
$f = normal_fan<Rational>($p);
$H = new Polytope<Rational>(POINTS=>[[1,-1,-1,1],[1,1,-1,1],[1,-1,1,1],[1,1,1,1]]);
compose($f->VISUAL,$H->VISUAL);