Visualization with different colours of vertices
Posted: 10 Apr 2015, 22:23
by i96
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.
Re: Visualization with different colours of vertices
Posted: 13 Apr 2015, 08:55
by assarf
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)]);
Re: Visualization with different colours of vertices
Posted: 15 Apr 2015, 10:07
by i96
That's great, thank you!