Converting 3D CAD files to stl?

27 views (last 30 days)
Pelajar UM
Pelajar UM on 22 Oct 2021
Edited: Pelajar UM on 22 Oct 2021
Is there any function in MATLAB / code on exchange that could convert a universal 3D CAD format such as .stp or .igs to .stl?
A lot of functions in MATLAB seems to only work with .stl. The problem here is that depending on the software that you use to convert your file to .stl, the output geometry (level of tessellation, surface, vertices, etc) and file size can vary a lot. So the results are not really consistent.

Accepted Answer

Cris LaPierre
Cris LaPierre on 22 Oct 2021
I am not aware of a function for this. I have always used my CAD program to export my model to STL. Do you still have access to your CAD software to do this? There are usually options to adjust the resolution of the generated STL. Try a couple different options to find the settings that work for you.
  1 Comment
Pelajar UM
Pelajar UM on 22 Oct 2021
Edited: Pelajar UM on 22 Oct 2021
Thanks. There are actually many free CAD software that can do the conversion. But if you convert the same .stp file to .stl using different software and import it into Matlab let's say for meshing, you will start to see the difference. STL format in a way is a lot like .obj. The output really depends on the parameter you use during convesion.
In Exchange, I came across FEATool which supports all common CAD format, but this is a toolbox, so I cannot really see the code:
https://www.mathworks.com/matlabcentral/fileexchange/63144-featool-multiphysics-matlab-fea-physics-simulation-toolbox?s_tid=srchtitle

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!