building SubdivisionOfPoints from C++

General discussion on polymake goes here.
vdelecroix
Posts: 19
Joined: 08 Jul 2016, 23:06

building SubdivisionOfPoints from C++

Postby vdelecroix » 31 Mar 2020, 13:34

Hello,

I would like to build a SubdivisionOfPoints from C++. However, my experiments were not fruitful.

Using

Code: Select all

perl::Object * sd = new perl::Object("SubdivisionOfPoints");
raises for me a

Code: Select all

Error processing type expression SubdivisionOfPoints: Package "SubdivisionOfPoints" does not exist at (eval 275) line 1. at /usr/local/share/polymake/perllib/Polymake/Core/Application.pm line 431. Polymake::Core::Application::construct_type() called at -e line 0 eval {...} called at -e line 0
Any hint on how to proceed would be appreciated.

Vincent

User avatar
gawrilow
Main Author
Posts: 425
Joined: 25 Dec 2010, 17:40

Re: building SubdivisionOfPoints from C++

Postby gawrilow » 31 Mar 2020, 13:43

You should either switch to the application "fan" beforehand, or use a qualified object type name "fan::SubdivisionOfPoints".

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

Re: building SubdivisionOfPoints from C++

Postby joswig » 31 Mar 2020, 14:04

I should say that

Code: Select all

perl::Object
is outdated now. In version 4.0 this was replaced by

Code: Select all

BigObject
; no perl:: anymore.

To get an idea I would recommend to look at code in polymake's source, e.g., normal_fan.cc. While that is about a different big object type, its use is similar.

vdelecroix
Posts: 19
Joined: 08 Jul 2016, 23:06

Re: building SubdivisionOfPoints from C++

Postby vdelecroix » 31 Mar 2020, 14:09

Thanks for your answers. I forgot to mention that I am using Polymake 3.6.

I also tried with fan::SubdivisionOfPoints and I get the same kind of error

Code: Select all

Package "fan::SubdivisionOfPoints" does not exist at (eval 257) line 1. at /usr/local/share/polymake/perllib/Polymake/Core/Application.pm line 431. Polymake::Core::Application::construct_type() called at -e line 0 eval {...} called at -e line 0

User avatar
gawrilow
Main Author
Posts: 425
Joined: 25 Dec 2010, 17:40

Re: building SubdivisionOfPoints from C++

Postby gawrilow » 31 Mar 2020, 14:18

Then please try with explicit application switch.

vdelecroix
Posts: 19
Joined: 08 Jul 2016, 23:06

Re: building SubdivisionOfPoints from C++

Postby vdelecroix » 31 Mar 2020, 14:29

That worked :-) But this application switch is somehow annoying.


Return to “General Discussion”