How to create mesh from coordinates

43 次查看(过去 30 天)
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 个)

Walter Roberson
Walter Roberson 2016-12-28
If you have R2014b or later consider using boundary() to generate an outside hull.
  4 个评论
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 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by