• 大小: 1.93MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-11
  • 语言: Matlab
  • 标签: 三角网格  matlab  

资源简介

matlab工具箱,处理三角网格格式的三维物体。三角网格格式是指存储了物体的顶点和三角面片的顶点索引;工具箱包括读取,平滑,计算距离等等很多基本的函数,对于初学者非常有用。

资源截图

代码片段和文件信息

function Ic = adjacency2incidence(A)

% adjacency2incidence - convert an adjacency matrix to an incidence matrix
%
%   Ic = adjacency2incidence(A);
%
%   A(ij) = 1 iff (ij) is an edge of the graph.
%   For each edge number k of the graph linking (ij)
%       Ic(ik)=1 and Ic(jk)=-1 
%
%   Ic is a sparse matrix.
%   Ic is also known as the graph gradient.
%
%   Copyright (c) 2006 Gabriel Peyre

%% compute list of edges
[ijs] = find(sparse(A));
I = find(i<=j);
i = i(I);
j = j(I);
% number of edges
n = length(i);
% number of vertices
nverts = size(A1);

%% build sparse matrix
s = [ones(n1); -ones(n1)];
is = [(1:n)‘; (1:n)‘];
js = [i(:); j(:)];
Ic = sparse(isjssnnverts);
Ic = Ic‘;

% fix self-linking problem (0)
a = find(i==j);
if not(isempty(a))
    for t=a‘
        Ic(i(t)t) = 1;
    end
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-07-17 09:52  toolbox-graph-master\
     文件          16  2013-07-17 09:52  toolbox-graph-master\.gitignore
     文件         815  2013-07-17 09:52  toolbox-graph-master\adjacency2incidence.m
     文件         511  2013-07-17 09:52  toolbox-graph-master\adjmatrix2list.m
     文件         208  2013-07-17 09:52  toolbox-graph-master\batch_levelsets_meshes.m
     文件         798  2013-07-17 09:52  toolbox-graph-master\build_euclidean_weight_matrix.m
     文件        1791  2013-07-17 09:52  toolbox-graph-master\build_graph_from_image.m
     文件        5660  2013-07-17 09:52  toolbox-graph-master\bunny.gim.jpg
     文件         669  2013-07-17 09:52  toolbox-graph-master\check_face_vertex.m
     文件        1423  2013-07-17 09:52  toolbox-graph-master\check_incircle.m
     文件        1633  2013-07-17 09:52  toolbox-graph-master\check_incircle_edge.m
     文件         139  2013-07-17 09:52  toolbox-graph-master\compile_mex.m
     文件        1847  2013-07-17 09:52  toolbox-graph-master\compute_boundary.m
     文件         909  2013-07-17 09:52  toolbox-graph-master\compute_combinatorial_laplacian.m
     文件        4161  2013-07-17 09:52  toolbox-graph-master\compute_curvature.m
     文件         287  2013-07-17 09:52  toolbox-graph-master\compute_delaunay.m
     文件        1611  2013-07-17 09:52  toolbox-graph-master\compute_diffusion_geometry.m
     文件         929  2013-07-17 09:52  toolbox-graph-master\compute_diffusion_kernel.m
     文件         971  2013-07-17 09:52  toolbox-graph-master\compute_distance_graph.m
     文件        1103  2013-07-17 09:52  toolbox-graph-master\compute_dual_graph.m
     文件         826  2013-07-17 09:52  toolbox-graph-master\compute_edge_face_ring.m
     文件         770  2013-07-17 09:52  toolbox-graph-master\compute_edges.m
     文件        1946  2013-07-17 09:52  toolbox-graph-master\compute_face_ring.m
     文件        5583  2013-07-17 09:52  toolbox-graph-master\compute_geometric_laplacian.m
     文件        2434  2013-07-17 09:52  toolbox-graph-master\compute_laplacian_curve.m
     文件        1065  2013-07-17 09:52  toolbox-graph-master\compute_levelset_mesh.m
     文件        1052  2013-07-17 09:52  toolbox-graph-master\compute_mesh_gradient.m
     文件        1300  2013-07-17 09:52  toolbox-graph-master\compute_mesh_laplacian.m
     文件        2163  2013-07-17 09:52  toolbox-graph-master\compute_mesh_local_covariance.m
     文件        2783  2013-07-17 09:52  toolbox-graph-master\compute_mesh_weight.m
     文件        1436  2013-07-17 09:52  toolbox-graph-master\compute_normal.m
............此处省略176个文件信息

评论

共有 条评论