politopix  4.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IO_Polytope.h File Reference
#include <stdexcept>
#include <exception>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include "polito_Export.h"
#include "Polytope_Rn.h"
#include "PolyhedralCone_Rn.h"
Include dependency graph for IO_Polytope.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IO_Polytope
 Read/write polytopes.
The way we store polytopes :
1st line : comments = "# Dimension NumberOfHalfspaces NumberOfGenerators"
2nd line : cartesian_space_dimension number_of_facets number_of_generators
3rd line : comments = "# HALFSPACES : a0 + a1.x1 + ... + an.xn >= 0."
4th line : a00 a10 ... an0
k-th line : a0k a1k ... ank
(k+1)-th line : comments = "# GENERATORS : V = (v1, ..., vn)"
(k+2)-th line : v11 ... v1n
l-th line : vl1 ... vln
(l+1)-th line : comments = "# FACETS PER GENERATOR : {Fi1, Fi2, ...}"
(l+2)-th line the neigh : Fr ... Fs
m-th line : Fs ... Ft
If (number_of_vertices == 0) then compute the vertices from the
facets including the polytope into a huge cube containing it.
In this case the blocks "GENERATORS" and "FACETS PER GENERATOR" are ignored. More...
 

Detailed Description