Visualization with different colours of vertices

Questions and problems about using polymake go here.
i96
Posts: 10
Joined: 03 Apr 2015, 12:41

Visualization with different colours of vertices

Postby i96 » 10 Apr 2015, 22:23

I have a polytope with coloured vertices (thereby, the vector which coordinates describe the colours of corresponding vertices). I want to visualize this polytope as a Schlegel diagram with vertices coloured in these different colours.
Is it possible to do it in Polymake?

Thanks a lot.

User avatar
assarf
Developer
Posts: 74
Joined: 12 Oct 2011, 15:52

Re: Visualization with different colours of vertices

Postby assarf » 13 Apr 2015, 08:55

Hey there

yes that is possible, see the visualization tutorial: http://polymake.org/doku.php/tutorial/visual_tutorial
You can even decide on which facet you want to to the schlegel-projection via:

Code: Select all

cube(4)->SCHLEGEL(FACET=>1, VertexColor=>[qw(red black green white red blue green white red blue green white red blue green white)]);
no signature

i96
Posts: 10
Joined: 03 Apr 2015, 12:41

Re: Visualization with different colours of vertices

Postby i96 » 15 Apr 2015, 10:07

That's great, thank you!


Return to “Helpdesk”