How to close a 3D shape to export to STL

5 views (last 30 days)
AThomas
AThomas on 8 May 2020
Answered: Prabhan Purwar on 11 May 2020
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?

Answers (1)

Prabhan Purwar
Prabhan Purwar on 11 May 2020
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!!

Categories

Find more on Triangulation Representation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!