#  Copyright (c) 1997-2018
#  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 {
        $this->GROUP->REPRESENTATIVE_RAYS = representation_conversion_up_to_symmetry($this, v_to_h=>0, method=>'lrs');
    }
    weight 5.10;

    rule GROUP.REPRESENTATIVE_FACETS : GROUP.RAYS_ACTION.GENERATORS, RAYS, LINEALITY_SPACE {
        $this->GROUP->REPRESENTATIVE_FACETS = representation_conversion_up_to_symmetry($this, v_to_h=>1, method=>'lrs');
    }
    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);
    return $g;
}

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