Export a plane in 3D coordinate as a surface mesh (STL file)
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Torkan Gholamalizadeh
el 11 de Sept. de 2020
Respondida: Aditya Patil
el 25 de Sept. de 2020
I have four points in 3D space which are coplanar. I want to export the plane created by these 4 points as a STL file. I have tried to use "delaunayTriangulation" function as follow
x = [-86.0789; -98.9967; -96.7493; -88.3263];
y = [-67.3229; -82.9531; -72.5115; -77.7645];
z = [45.9099; 23.8005; 35.4591; 34.2513];
tri = delaunayTriangulation(x,y,z);
stlwrite(tri,'plane.stl');
However I get a warning stating that "The triangulation is empty - the points may be coplanar or collinear." and the "tri" variable is empty. Do you have any suggestions for exporting such a plane in 3D space as a STL file?
Could it be due to the reason that the triangulation does not fit in the Delaunay triangulation criterion as mentioned here? if it is the case, how can I sample more points such that I can garantee that they would fit in the critetion and can export the plane as surface mesh?
4 comentarios
Aditya Patil
el 24 de Sept. de 2020
Can you provide the output of version command. I am unable to reproduce it with 2020a.
Torkan Gholamalizadeh
el 25 de Sept. de 2020
Editada: Torkan Gholamalizadeh
el 25 de Sept. de 2020
Respuestas (1)
Aditya Patil
el 25 de Sept. de 2020
delaunayTriangulation tries to create a 3D triangulation if three parameters, viz x,y, and z are provided. In your case, as you are providing 3 parameters, it goes for 3D triangulation . However your points are planar, hence it cannot create the triangulation.
You need to rotate your plane to fit 2D coordinates, and then create the triangulation.
0 comentarios
Ver también
Categorías
Más información sobre Delaunay Triangulation 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!