www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conconvexhull/getBoundaryPointOptions.m
function [opts, ok] = getBoundaryPointOptions(con) %GETBOUNDARYPOINTOPTIONS Get the options for finding boundary points % % [OPTS, OK] = GETBOUNDARYPOINTOPTIONS(CON) % % See also CONCONVEXHULL, CONBASE/GETBOUNDARYPOINTOPTIONS. % Copyright 2005-2011 The MathWorks, Inc. % Second return argument is required to work with "xregoptmgr" code. ok = true; % Use an "optimisation manager" to handle the options opts = contextimplementation( xregoptmgr, con, '', '', 'Boundary Points', @getBoundaryPointOptions ); opts = AddOption(opts, 'KeepAllFacets', false, 'boolean', 'Keep all facets', 1); opts = AddOption(opts, 'Tolerance', 0.02, 'double', 'Maximum 1-norm distance', 0); % No further options