您的位置:首页 > 其它

check whether edge in face indices.

2016-07-05 20:12 204 查看
function result = isneighbor(i,j,F)
%ISNEIGHBOR True for edge ij in face indices.
% i,j   : two indices of edge-endpoints
% F     : face index list
result = any(2 == sum(ismember(F,[i j]),2))
end
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: