polymake and povray

Questions and problems about using polymake go here.
aloos
Posts: 3
Joined: 04 Jul 2011, 12:57

polymake and povray

Postby aloos » 04 Jul 2011, 13:01

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

paffenholz
Developer
Posts: 211
Joined: 24 Dec 2010, 13:47

Re: polymake and povray

Postby paffenholz » 06 Jul 2011, 17:59

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.

aloos
Posts: 3
Joined: 04 Jul 2011, 12:57

Re: polymake and povray

Postby aloos » 13 Jul 2011, 15:03

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

aloos
Posts: 3
Joined: 04 Jul 2011, 12:57

Re: polymake and povray

Postby aloos » 13 Jul 2011, 15:24

Hi,

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

Best,
andreas

User avatar
joswig
Main Author
Posts: 282
Joined: 24 Dec 2010, 11:10

Re: polymake and povray

Postby joswig » 15 Jul 2011, 11:58

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.


Return to “Helpdesk”