資源簡介
網格劃分代碼,并動態顯示劃分過程。
采用matlab語言

代碼片段和文件信息
function?e=boundedges(pt)
%BOUNDEDGES?Find?boundary?edges?from?triangular?mesh
%???E=BOUNDEDGES(PT)
%???Copyright?(C)?2004-2006?Per-Olof?Persson.?See?COPYRIGHT.TXT?for?details.
%?Form?all?edges?non-duplicates?are?boundary?edges
edges=[t(:[12]);
???????t(:[13]);
???????t(:[23])];
node3=[t(:3);t(:2);t(:1)];
edges=sort(edges2);
[fooixjx]=unique(edges‘rows‘);
vec=histc(jx1:max(jx));
qx=find(vec==1);
e=edges(ix(qx):);
node3=node3(ix(qx));
%?Orientation
v1=p(e(:2):)-p(e(:1):);
v2=p(node3:)-p(e(:1):);
ix=find(v1(:1).*v2(:2)-v1(:2).*v2(:1)>0);
e(ix[12])=e(ix[21]);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????622??2006-02-13?18:54??boundedges.m
?????文件?????????469??2006-02-13?18:54??circumcenter.m
?????文件????????1067??2006-02-13?18:54??COPYRIGHT.TXT
?????文件?????????215??2006-02-13?18:54??dblock.m
?????文件?????????153??2006-02-13?18:54??dcircle.m
?????文件?????????121??2006-02-13?18:55??ddiff.m
?????文件????????1841??2006-02-13?18:55??dellipse.cpp
?????文件????????7680??2004-06-30?13:15??dellipse.dll
?????文件????????7291??2004-07-01?15:45??dellipse.mexglx
?????文件????????2529??2006-02-13?18:55??dellipsoid.cpp
?????文件????????8704??2004-06-30?13:15??dellipsoid.dll
?????文件????????7922??2004-07-01?15:45??dellipsoid.mexglx
?????文件????????1046??2006-02-13?18:55??dexpr.m
?????文件?????????121??2006-02-13?18:55??dintersect.m
?????文件????????3969??2006-02-13?18:55??distmesh2d.m
?????文件????????3349??2006-02-13?18:55??distmeshnd.m
?????文件?????????184??2006-02-13?18:55??dmatrix3d.m
?????文件?????????169??2006-02-13?18:55??dmatrix.m
?????文件?????????781??2006-02-13?18:55??dpoly.m
?????文件?????????421??2006-02-13?18:55??drectangle0.m
?????文件?????????182??2006-02-13?18:55??drectangle.m
?????文件????????1309??2006-02-13?18:55??dsegment.cpp
?????文件????????5632??2004-06-30?13:15??dsegment.dll
?????文件????????6124??2004-07-27?19:33??dsegment.mexglx
?????文件?????????173??2006-02-13?18:56??dsphere.m
?????文件?????????121??2006-02-13?18:56??dunion.m
?????文件?????????443??2006-02-13?18:56??fixmesh.m
?????文件?????????187??2006-02-13?18:56??hmatrix3d.m
?????文件?????????172??2006-02-13?18:56??hmatrix.m
?????文件?????????137??2006-02-13?18:56??huniform.m
?????文件????????3774??2006-02-13?18:56??meshdemo2d.m
............此處省略9個文件信息
評論
共有 條評論