Borrar filtros
Borrar filtros

3D Coordinates to Mesh with Vertices and Faces

10 visualizaciones (últimos 30 días)
Jason Bond
Jason Bond el 8 de Jun. de 2017
Comentada: Pavel Onishchenko el 28 de Oct. de 2020
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 comentarios
KSSV
KSSV el 9 de Jun. de 2017
How your XYZ data is? Gridded or scattered? Solutions depends on that.
Jason Bond
Jason Bond el 9 de Jun. de 2017
Hello. My data can be divided into three X, Y, Z vectors. I can view this using Scatter3.

Iniciar sesión para comentar.

Respuestas (2)

KSSV
KSSV el 9 de Jun. de 2017
Editada: KSSV el 9 de Jun. de 2017
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 comentarios
Pavel Onishchenko
Pavel Onishchenko el 28 de Oct. de 2020
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);

Iniciar sesión para comentar.


lokesh kumar
lokesh kumar el 25 de Ag. de 2019
i HAVE THE TRAINGULATED DATA, How to plot into surf

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by