https://github.com/ruqihuang/AdjointFmaps
Revision d41efaa1636fb8cc0da8f09d89f4a1cae0172320 authored by ruqihuang on 24 August 2017, 07:39:27 UTC, committed by ruqihuang on 24 August 2017, 07:39:27 UTC
claim that the package is only pre-compiled for Mac
1 parent 702a390
Tip revision: d41efaa1636fb8cc0da8f09d89f4a1cae0172320 authored by ruqihuang on 24 August 2017, 07:39:27 UTC
Update readme
Update readme
Tip revision: d41efaa
geodesics_pairs.m
% Function to compute the geodesic distances on a shape between a set of
% pairs of vertices. Pairs must be given as a Nx2 matrix, where each row
% represents a pair vid1, vid2 to compute the distance.
%
% NOTE: vertex ids start at 1 (Matlab-style), NOT at 0 (C++ style).
%
% Output: a Nx1 matrix of geodesic distances.
function D = geodesics_pairs(shape, pairs)
S = shape.surface;
if (size(pairs,2) ~= 2)
error('pairs must be a Nx2 matrix');
end
if (min(min(pairs)) < 1)
error('vertex ids should start at 1');
end
D = comp_geodesics_pairs(double(S.X), double(S.Y), double(S.Z), ...
double(S.TRIV'), double(pairs'));
end

Computing file changes ...