How to create mesh from coordinates

조회 수: 12 (최근 30일)
sumana
sumana 2016년 12월 27일
댓글: Viraj Gandhi 2021년 2월 26일
Hi,
I have a 3D object (as shown in figure) defined entirely by x,y,z coordinates. Below shows the plot using scatter3().
I do not have the triangulation information.
My ultimate goal is to convert it to an .*stl file. How do I mesh it? delaunay(x,y,z) is giving something like this which is not correct.
Do I need some kind of algorithm to mesh it ?
Or else can I convert the coordinates to a .ply file to use meshlab to mesh it ? I don't know how to convert. Since this is a closed figure meshgrid() etc. are not working.
Thank you for the help.

채택된 답변

Kaustubh Tiwarekar
Kaustubh Tiwarekar 2020년 4월 21일
  댓글 수: 1
Viraj Gandhi
Viraj Gandhi 2021년 2월 26일
Thank you so much!! It saved a ton of my time!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 12월 28일
If you have R2014b or later consider using boundary() to generate an outside hull.
  댓글 수: 4
sumana
sumana 2016년 12월 28일
Another view of it.
Walter Roberson
Walter Roberson 2016년 12월 28일
편집: Walter Roberson 2016년 12월 28일
pc = pointCloud( [x(:), y(:), z(:)] );
pcwrite(pc, 'OutputFileName.ply');
This requires the Computer Vision Toolbox.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by