4
#include "gfanapplication.h"
5
#include "polyhedralcone.h"
6
#include "polyhedralfan.h"
7
#include "polymakefile.h"
9
class CommonRefinementApplication : public GFanApplication
11
StringOption input1Option;
12
StringOption input2Option;
14
const char *helpText()
16
return "This program takes two polyhedral fans and computes their common refinement.\n";
18
CommonRefinementApplication():
19
input1Option("-i1","Specify the name of the first input file.","polymake.out"),
20
input2Option("-i2","Specify the name of the second input file.","polymake.out")
27
return "_fancommonrefinement";
32
PolyhedralFan f1=PolyhedralFan::readFan(input1Option.getValue());
33
PolyhedralFan f2=PolyhedralFan::readFan(input2Option.getValue());
35
PolyhedralFan f=refinement(f1,f2);
37
AsciiPrinter P(Stdout);
39
f.printWithIndices(&P,FPF_default/*|FPF_multiplicities|FPF_values*/);
45
static CommonRefinementApplication theApplication;