Page 1 of 1

polymake and povray

Posted: 04 Jul 2011, 13:01
by aloos
Hi,

trying the povray example

polytope > povray(cube(3)->VISUAL,File=>"test.pov");

I get the following error:

polymake: ERROR: Undefined subroutine &Polymake::User::povray called.

What does that mean? I am running polymake 2.9.9. on fedora 14.

Best,
andreas

Re: polymake and povray

Posted: 06 Jul 2011, 17:59
by paffenholz
Is povray installed on your computer? Is polymake configured to use it? Try

Code: Select all

show_unconfigured;

in the shell (or check the list of used programs printed at the beginning of a new session).

If povray.rules is in the list returned by this command, then issue

Code: Select all

reconfigure ("povray.rules");
If povray is not in the standard location, then polymake will ask for the path.

polymake by itself only configures external programs it finds at standard locations at the very first start. All others have to be reconfigured explicitly.

Please write again if this does not solve the problem.

Re: polymake and povray

Posted: 13 Jul 2011, 15:03
by aloos
Great. That solved the problem. I thought that polymake only puts out the povray file, so I do not have to configure.

Thank you!
andreas

Re: polymake and povray

Posted: 13 Jul 2011, 15:24
by aloos
Hi,

is it possible to change the view of the object? Or does VISUAL always choose automatically perspective etc. for me?

Best,
andreas

Re: polymake and povray

Posted: 15 Jul 2011, 11:58
by joswig
For a different visualization you should save the file, e.g., via

Code: Select all

povray(cube(3)->VISUAL,File=>"cube.pov");
and edit. Notice that the file polypov.ini included there only sets a few values which are kept in custom variables. The actual scene description is in polymake-scene.pov.

For interactive visualization use jreality.