This artificial application gathers functionality shared by many "real" applications. While most users can probably do without looking into this you may find some useful functions here.
Change the type of the polymake object: only downcast (to a derived type) and upcast (to an ancestor type) are allowed.
Target | the desired new type |
Object | object | to be modified |
Object | the same object, but with modified type |
convert to different scalar type if needed
Convert to different element type if needed.
UNDOCUMENTED
UNDOCUMENTED
Convert to an equivalent dense vector of the same element type
SparseVector | v |
Convert to an equivalent dense matrix of the same element type
SparseMatrix | m |
Convert to a dense 0/1 matrix
IncidenceMatrix | m |
Prepares a matrix for printing, prepends each row with a label and a colon.
Matrix | data | to be printed |
Array<String> | row_labels | labels for the rows |
Array<String> | elem_labels | optional labels for elements;
if data is an IncidenceMatrix, Array<Set>, or similar, each element will be replaced by its label. |
Array<String> | each string ending with end-of-line |
Like above, but specialized for Graphs (defined for convenience: a PTL Graph is not a container)
Graph | graph | to be printed |
Array<String> | elem_labels | labels for the elements |
Equivalent to rows_labeled with omitted row_labels argument. Formerly called "numbered".
Matrix | data | to be printed |
directed | graph | node-edge incidence matrix of an undirected graph |
Check whether both matrices are bases of the same linear subspace.
Creates a vector with all elements equal to 1.
Creates a vector with all elements equal to zero.
Compute a column-wise bounding box for the give matrix
Produce a histogram of a container: each different element value is mapped on the number of its occurences.
Create a composite drawing of several objects.
Visual::Object | vis_obj ... | objects to be drawn together |
String | Title | name of the whole drawing; per default the name of the first Object is taken. |
any | decorations | to be applied to all components as default values. |
Visual::Container | if called in void context, immediately starts the preferred rendering program. |
Add new objects to a composite drawing.
Visual::Container | vis_container | drawing produced by some visualization function |
Visual::Object | vis_obj ... | objects to be added |
String | Title | new name for the drawing |
any | decorations | to be applied to all components as default values. |
Visual::Container | if called in void context, immediately starts the preferred rendering program. |
Run geomview to display given visual objects.
Visual::Object | vis_obj ... | objects to display |
String | File | "filename" or "AUTO"
Store the objects in a
gcl (geomview control language) file instead of starting the interactive GUI.
The geometric data in OFF format is embedded in the Lisp-style commands, but can be easily extracted
using any text editor, if needed. The
.gcl suffix is automatically added to the file name. Specify AUTO if you want the filename be automatically derived
from the drawing title.
You can also use any expression allowed for the
open function,
including "-" for terminal output, "&HANDLE" for an already opened file handle,
or "| program" for a pipe. |
Run JavaView with the given visual objects.
Visual::Object | vis_obj ... | objects to display |
String | File | "filename" or "AUTO"
Store the object description in a JVX file without starting the interactive GUI.
The
.jvx suffix is automatically added to the file name. Specify AUTO if you want the filename be automatically derived
from the drawing title.
You can also use any expression allowed for the
open function,
including "-" for terminal output, "&HANDLE" for an already opened file handle,
or "| program" for a pipe. |
Run jReality to display given visual objects.
Visual::Object | vis_obj ... | objects to display |
String | File | "filename" or "AUTO"
Store the object description in a bean shell source file without starting the interactive GUI.
The
.bsh suffix is automatically added to the file name. Specify AUTO if you want the filename be automatically derived
from the drawing title.
You can also use any expression allowed for the
open function,
including "-" for terminal output, "&HANDLE" for an already opened file handle,
or "| program" for a pipe. |
Create a Postscript (tm) drawing with the given visual objects.
Visual::Object | vis_obj ... | objects to draw |
String | File | "filename" or "AUTO"
Store the drawing in a file without starting the viewer.
The
.ps suffix is automatically added to the file name. Specify AUTO if you want the filename be automatically derived
from the drawing title.
You can also use any expression allowed for the
open function,
including "-" for terminal output, "&HANDLE" for an already opened file handle,
or "| program" for a pipe. |
Run POVRAY to display given visual objects.
Visual::Object | vis_obj ... | objects to display |
String | File | "filename" or "AUTO"
Store the object description in a POVRAY source file without actual rendering.
The
.pov suffix is automatically added to the file name. Specify AUTO if you want the filename be automatically derived
from the drawing title.
You can also use any expression allowed for the
open function,
including "-" for terminal output, "&HANDLE" for an already opened file handle,
or "| program" for a pipe. |
Suppress creation of dynamic (interactive) scenes.
Visual::Object | vis_obj | drawing, e.g. created by VISUAL_GRAPH or SCHLEGEL . |
Visual::Object | if called in void context, immediately starts the preferred rendering program. |
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
Gives the indices of the nodes adjacent to node.
Int | node |
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
Gives the indices of the nodes that have an edge to node.
Int | node |
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
Gives the indices of the nodes with an edge arriving from node.
Int | node |
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
UNDOCUMENTED
This is a pseudo-type for documentation purposes only. Many options of visualization functions modifying the appearance of some set of graphical elements like points, edges, facets, etc. accept a wide range of possible values, allowing for different grades of flexibility (and complexity):
SCALAR the same attribute value is applied to all elements ARRAY each element gets its individual attribute value HASH elements found in the hash get their individual attribute values, for the rest the appropriate default applies SUB a piece of code computing the attribute value for the given element
Unless specified explicitly in the detailed option description, the indices, keys, or subroutine arguments used for retrieval of the attribute values are just the zero-based ordinal numbers of the elements.
A color described as a Hue-Saturation-Value triple. Is convertible to and from an RGB representation.
A color described as a Red-Green-Blue triple.
Can be constructed from a list of three integral values from the range 0..255,
or a list of three floating-point values from the range 0..1,
or one of symbolic names listed in the system-wide file rgb.txt
.
Common attributes modifying the appearance of PointSets and all visual objects derived thereof. Please be aware that no one visualization program interfaced to polymake supports all of them. Unsupported options are normally ignored.
String | Title | the name of the drawing |
String | Name | the name of this visual object in the drawing |
Bool | Hidden | if set to true, the visual object is not rendered
(useful for interactive visualization programs allowing for switching details on and off) |
String | PointLabels | if set to "hidden", no point labels are displayed |
String | VertexLabels | alias for PointLabels |
Flexible<RGB> | PointColor | color of the spheres or rectangles representing the points |
Flexible<RGB> | VertexColor | alias for PointColor |
Flexible<Float> | PointThickness | scaling factor for the size of the spheres or rectangles representing the points |
Flexible<Float> | VertexThickness | alias for PointThickness |
Flexible<RGB> | PointBorderColor | color of the border line of rectangles representing the points |
Flexible<Float> | VertexBorderColor | alias for PointBorderColor |
Flexible<Float> | PointBorderThickness | scaling factor for the thickness of the border line of rectangles representing the points |
Flexible<Float> | VertexBorderThickness | alias for PointBorderThickness |
Flexible<String> | PointStyle | if set to "hidden", neither point nor its label is rendered |
Flexible<String> | VertexStyle | alias for PointStyle |
Attributes modifying the appearance of filled polygons.
RGB | FacetColor | filling color of the polygon |
Float | FacetTransparency | transparency factor of the polygon between 0 (opaque) and 1 (completely translucent) |
String | FacetStyle | if set to "hidden", the inner area of the polygon is not rendered |
RGB | EdgeColor | color of the boundary lines |
Float | EdgeThickness | scaling factor for the thickness of the boundary lines |
String | EdgeStyle | if set to "hidden", the boundary lines are not rendered |
Attributes modifying the appearance of a set of polygons (like a polygonal surface).
Flexible<RGB> | FacetColor | filling color of the polygons |
Flexible<Float> | FacetTransparency | transparency factor of the polygons between 0 (opaque) and 1 (completely translucent) |
Flexible<String> | FacetStyle | if set to "hidden", the inner area of the polygons are not rendered at all |
String | FacetLabels | if set to "hidden", the facet labels are not displayed (in the most cases this is the default behavior) |
RGB | EdgeColor | color of the boundary lines |
Float | EdgeThickness | scaling factor for the thickness of the boundary lines |
String | EdgeStyle | if set to "hidden", the boundary lines are not rendered |
Attributes modifying the appearance of "wire frameworks". Unlike the rest, the flexible edge attributes are retrieved using the edge iterator as an index/key/argument.
Flexible<RGB> | EdgeColor | color of the lines representing the edges |
Flexible<Float> | EdgeThickness | scaling factor for the thickness of the lines representing the edges |
EdgeMap<String> | EdgeLabels | textual labels to be placed along the edges |
Flexible<String> | EdgeStyle | if set to "hidden", neither the edge nor its label is rendered |