3D Coordinates to Mesh with Vertices and Faces

10 次查看(过去 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 个评论
KSSV
KSSV 2017-6-9
How your XYZ data is? Gridded or scattered? Solutions depends on that.
Jason Bond
Jason Bond 2017-6-9
Hello. My data can be divided into three X, Y, Z vectors. I can view this using Scatter3.

请先登录,再进行评论。

回答(2 个)

KSSV
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 个评论
Pavel Onishchenko
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);

请先登录,再进行评论。


lokesh kumar
lokesh kumar 2019-8-25
i HAVE THE TRAINGULATED DATA, How to plot into surf

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by