Revision 033067c96b8ba4e9c800c9a04310cfa05ceafe2f authored by Alec Jacobson on 03 September 2020, 17:46:41 UTC, committed by GitHub on 03 September 2020, 17:46:41 UTC
exposed admm tolerances
path_to_tetgen.m
function s = path_to_tetgen()
% PATH_TO_TETGEN Returns absolute, system-dependent path to tetgen executable
%
% Outputs:
% s path to tetgen as string
%
% See also: tetgen
if ispc
warning([ ...
'Dear Ladislav, is there a standard place to put executables on a pc?' ...
'Could you put tetgen there and change this accordingly?' ...
'Thanks, Alec']);
s = 'c:/prg/lib/tetgen/Release/tetgen.exe';
elseif ismac || isunix
% I guess this means linux
[~,s] = system('which tetgen');
s = strtrim(s);
if isempty(s)
guesses = { ...
'/usr/local/bin/tetgen', ...
'/opt/local/bin/tetgen', ...
'/usr/local/igl/libigl/external/tetgen/tetgen', ...
[path_to_libigl '/external/tetgen/tetgen'], ...
'/usr/local/libigl/external/tetgen/tetgen'};
s = find_first_path(guesses);
end
end
end
Computing file changes ...