How to close a 3D shape to export to STL

5 次查看(过去 30 天)
I have produced a profile as a polyshape. I have then exported the vertices and offset them by a nominal amount, and created a triangulation between these two sets of points - picture a hollow cylinder for examples sake that has then been triangulated.
Now, to produce an STL properly I need to somehow close off the top and bottom faces.
How do you produce a patch, or fill that we can attach to the aforementioned triangulation surfaces that 'stlwrite' will recognise as one set of data?

回答(1 个)

Prabhan Purwar
Prabhan Purwar 2020-5-11
Hi,
Currently, the built-in triangulation functions in MATLAB only accept 1-dimensional coordinates data.
The workaround is to use the "mesh2tri" utility that can be found on MATLAB Central - File Exchange page in this link:
Please note that the submissions on MATLAB Central - File Exchange are by users of the product, and are not supported by MathWorks' Technical Support. If you have any questions about how to use the code found on the File Exchange, please contact the author of the individual submission.
Hope it helps!!

类别

Help CenterFile Exchange 中查找有关 Triangulation Representation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by