필터 지우기
필터 지우기

3D Coordinates to Mesh with Vertices and Faces

조회 수: 10 (최근 30일)
Jason Bond
Jason Bond 2017년 6월 8일
댓글: Pavel Onishchenko 2020년 10월 28일
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