Is it possible to save 2D or 3D graphics in a common CAD format (STEP File or .dwg file)?

27 views (last 30 days)
Is it possible to create a 2D or 3D graphic shape in MATLAB and then convert it into a common CAD file?

Accepted Answer

Abhishek
Abhishek on 13 Sep 2023
Hi Saeid,
I understand that you want to create a 2D/3D graphic shape and then export it as a known CAD file format using MATLAB.
One way to create and export the 2D/3D graphic shape is by creating a surface of the shape using "surf" plot and then export it as STL File, which is a commonly used CAD file format.
To create 2D/3D graphic shape in MATLAB, you can use the "surf" plot. This will help you to create a three-dimensional surface plot. Please refer this documentation for more information about "surf" plot: https://in.mathworks.com/help/matlab/ref/surf.html
Once you have a surface plot, you can export the "surf" plot values into a stl file using the following file exchange: https://www.mathworks.com/matlabcentral/fileexchange/4512-surf2stl
In case you want to convert the thin surface of graphical shape, you can use the following file exchange: https://in.mathworks.com/matlabcentral/fileexchange/42876-surf2solid-make-a-solid-volume-from-a-surface-for-3d-printing
I hope this helps!

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!