Hi Andreas,
having a not full-dimensional polytope was my initial thought. However, I tested this with polytopes which are guaranteed to be full dimensional (e.g. cube). Interestingly, polymake tells me that FULL_DIM is true and CONE_DIM as well as CONE_AMBIENT_DIM is 4 (I'm working with 3 dimensional polytopes only). However, trying to get the properties DIM or AMBIENT_DIM an exception is thrown:
Code: Select all
terminate called after throwing an instance of 'pm::perl::exception'
what(): unknown property Polytope<Rational>::DIM at /usr/local/share/polymake/perllib/Polymake/Core/ObjectType.pm line 460
Polymake::Core::ObjectType::encode_request_element('Polymake::Core::ObjectType=ARRAY(0x140cd2310)', 'DIM', 'Polymake::polytope::Polytope__Rational=ARRAY(0x140c973c8)', undef) called at /usr/local/share/polymake/perllib/Polymake/Core/ObjectType.pm line 475
Polymake::Core::ObjectType::encode_read_request('Polymake::Core::ObjectType=ARRAY(0x140cd2310)', 'DIM', 'Polymake::polytope::Polytope__Rational=ARRAY(0x140c973c8)') called at /usr/local/share/polymake/perllib/Polymake/Core/Object.pm line 1369
Polymake::Core::Object::give_pv called at /usr/local/share/polymake/perllib/Polymake/Core/Object.pm line 1385
Polymake::Core::Object::give('Polymake::polytope::Polytope__Rational=ARRAY(0x140c973c8)', 'DIM') called at /Users/[...]/polymake-2.12/lib/callable/src/perl/Main.cc line 0
eval {...} called at /Users/[...]/polymake-2.12/lib/callable/src/perl/Main.cc line 0
Note, that despite the problems regarding the volume, I can compute the face lattice, vertices, facets without any problems.
I also tried this: Create a polytope in polymake and write it to a file. Then, when loading it again into polymake, everything's fine (I can compute VOLUME, DIM, AMBIENT_DIM). But loading the same file into my program, I still get the error above.
best regards,
Sören