3D Coordinates to Mesh with Vertices and Faces
6 ビュー (過去 30 日間)
古いコメントを表示
Hello. I have a set of 3D points in an multidimensional array (XYZ) which need to be converted into some kind of mesh (ideally with vertices and faces), which can then be converted into a binary volume.
What is the best way to go about this? Any suggestions or examples would be great, thanks.
2 件のコメント
回答 (2 件)
KSSV
2017 年 6 月 9 日
編集済み: KSSV
2017 年 6 月 9 日
That case you have to look into delaunay and griddata
% some random data
N=20;
x=rand(N,1) ;
y=rand(N,1) ;
z=rand(N,1) ;
tri=delaunay(x,y);
trisurf(tri,x,y,z);
3 件のコメント
KSSV
2017 年 6 月 9 日
I suggest you to use this package: https://in.mathworks.com/matlabcentral/fileexchange/25555-mesh2d-delaunay-based-unstructured-mesh-generation
Pavel Onishchenko
2020 年 10 月 28 日
try this:
shp = alphaShape(points(:,1),points(:,2),points(:,3));
where points is Nx3 xyz matrix.
also you can get elements and nodes matrixes via
[elements,nodes] = boundaryFacets(shp);
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!