


reduce a V-representation to extreme points of convex hull Syntax: vrep = reduceVrep(vrep) This function wraps a cddlib function that reduces a set of points to the extreme points of their convex hull. Scaling of the input is important, because cddlib applies a fixed zero tolerance. This tolerance is stored in the function zerotolCddlib during initialization of this library (buildCddlib). See also: convertPolytope


0001 function vrep = reduceVrep(vrep) 0002 % reduce a V-representation to extreme points of convex hull 0003 % 0004 % Syntax: vrep = reduceVrep(vrep) 0005 % 0006 % This function wraps a cddlib function that reduces a set of points to the 0007 % extreme points of their convex hull. 0008 % 0009 % Scaling of the input is important, because cddlib applies a fixed zero 0010 % tolerance. This tolerance is stored in the function zerotolCddlib 0011 % during initialization of this library (buildCddlib). 0012 % 0013 % See also: convertPolytope 0014 0015 % The elk-library: convex geometry applied to crystallization modeling. 0016 % Copyright (C) 2012 Alexander Reinhold 0017 % 0018 % This program is free software: you can redistribute it and/or modify it 0019 % under the terms of the GNU General Public License as published by the 0020 % Free Software Foundation, either version 3 of the License, or (at your 0021 % option) any later version. 0022 % 0023 % This program is distributed in the hope that it will be useful, but 0024 % WITHOUT ANY WARRANTY; without even the implied warranty of 0025 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0026 % General Public License for more details. 0027 % 0028 % You should have received a copy of the GNU General Public License along 0029 % with this program. If not, see <http://www.gnu.org/licenses/>. 0030 0031 vrep = callCddLib('reduce_v', struct('V', vrep.V)); 0032 vrep = struct('V', vrep.V);