Page 1 of 1

Problem with visualization

Posted: 11 Aug 2017, 12:55
by ivanovic
I tried to visualize 3D polytope with $p->VISUAL;
but I got a message in terminal ERROR: could not provide all required input properties at input line 1.
I typed by hand:

Code: Select all

$n=new Matrix<Rational>([[-3,1,0,0,0],[-3,0,1,0,0],[-3,0,0,1,0],[-3,0,0,0,1],[-9,1,1,0,0],[-9,0,1,1,0],[-9,0,0,1,1],[-27,1,1,1,0],[-27,0,1,1,1]]); $p=new Polytope<Rational>(INEQUALITIES=>$n, EQUATIONS=>[[-81,1,1,1,1]]); $p->VISUAL;
Each line is OK but VISUAL doesn't work. I tried other 3D examples and got the same message.
2D visualization is OK. My opinion is that something goes wrong with javaView. Please, help me, I was trying to solve this all days.

Re: Problem with visualization

Posted: 11 Aug 2017, 15:14
by joswig
You could try

Code: Select all

threejs($p->VISUAL);
instead of your last command. If it works you could then use

Code: Select all

prefer "threejs";
to set that kind of visualization as your standard. That is, pure VISUAL would start threejs afterwards.

For being able to help you more, you should specify on which kind of operating system you are using which version of polymake.