#  Copyright (c) 1997-2016
#  Ewgenij Gawrilow, Michael Joswig (Technische Universitaet Berlin, Germany)
#  http://www.polymake.org
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by the
#  Free Software Foundation; either version 2, or (at your option) any
#  later version: http://www.gnu.org/licenses/gpl.txt.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#-------------------------------------------------------------------------------


CREDIT sympol
  A software package for polyhedral description conversion up to symmetries.
  Written by Thomas Rehn and Achill Schürmann.
  http://www.math.uni-rostock.de/~rehn/software/sympol.html 

object Cone {

    rule GROUP.REPRESENTATIVE_RAYS : GROUP.FACETS_ACTION.GENERATORS, FACETS, LINEAR_SPAN {
        my $rayCompMethod = 0; # chooses sympol ray computation via lrs (set to 1 for computation via cdd)
        $this->GROUP->REPRESENTATIVE_RAYS = representation_conversion_up_to_symmetry($this, 0, $rayCompMethod);
    }
    weight 5.10;

    rule GROUP.REPRESENTATIVE_FACETS : GROUP.RAYS_ACTION.GENERATORS, RAYS, LINEALITY_SPACE {
        my $rayCompMethod = 0; # chooses sympol ray computation via lrs (set to 1 for computation via cdd)
        $this->GROUP->REPRESENTATIVE_FACETS = representation_conversion_up_to_symmetry($this, 1, $rayCompMethod);
    }
    weight 5.10;

}

# @category Symmetry
# wrapper function to store the symmetry group in the parent object
user_function linear_symmetries($) {
    my $p = shift;
    my $g = linear_symmetries_impl($p);
    if (!defined($p->give("GROUP", "LinAut"))) {
        $p->add("GROUP", $g);
    }
    return $g;
}

# Local Variables:
# mode: perl
# cperl-indent-level: 3
# indent-tabs-mode:nil
# End:
