Hi there,
no need apologizing for asking a question
The output is indeed not right. One should expect the following:
Code: Select all
fan > $p = new PolyhedralFan(INPUT_RAYS => [[1,0],[1,3]], INPUT_CONES=>[[0,1]]);
fan > print $p->F_VECTOR;
2 1
fan > print $p->CONES;
<{0}
{1}
>
<{0,1}
>
Since the apex is the only 0-dim thing in a fan f_0 will always be 1. So this is omitted from the output to reduce redundancies. Meaning you don't get the 1 at the beginning.
Your fan is kind of "special" since it is basically just one cone with its faces. Meaning there is only one maximal cone. So the last component should be shown but isn't. So thank you for finding this bug. We're gonna look into it, and hopefully this will be fixed in the next (beta) release.
BUT when you take a fan, with more than one maximal cone, then the output should be as one would expect. Example:
Code: Select all
fan > $p = new PolyhedralFan(INPUT_RAYS => [[1,0,0],[1,1,0],[1,0,1],[1,1,1]], INPUT_CONES=>[[0,1,2],[1,2,3]]);
fan > print $p->F_VECTOR;
4 5 2
fan > print $p->CONES;
<{0}
{1}
{2}
{3}
>
<{0 1}
{0 2}
{1 2}
{1 3}
{2 3}
>
<{0 1 2}
{1 2 3}
>