How to create mesh from coordinates

13 Ansichten (letzte 30 Tage)
sumana
sumana am 27 Dez. 2016
Kommentiert: Viraj Gandhi am 26 Feb. 2021
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.

Akzeptierte Antwort

Kaustubh Tiwarekar
Kaustubh Tiwarekar am 21 Apr. 2020
  1 Kommentar
Viraj Gandhi
Viraj Gandhi am 26 Feb. 2021
Thank you so much!! It saved a ton of my time!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 28 Dez. 2016
If you have R2014b or later consider using boundary() to generate an outside hull.
  4 Kommentare
sumana
sumana am 28 Dez. 2016
Another view of it.
Walter Roberson
Walter Roberson am 28 Dez. 2016
Bearbeitet: Walter Roberson am 28 Dez. 2016
pc = pointCloud( [x(:), y(:), z(:)] );
pcwrite(pc, 'OutputFileName.ply');
This requires the Computer Vision Toolbox.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by