Export surfaces to CAD (stl,step, iges, ...)
85 views (last 30 days)
Show older comments
Hello,
I have the following command and plot surface. All x1,x2,x3,x4,y1,y2,y3,y4 are 101x1 numeric data
X=[x1,x2,x3,x4,x1]
Y=[y1,y2,y3,y4,y1]
Z=[Z_increase,Z_increase,Z_increase,Z_increase,Z_increase]
Graph_1=surf(X,Y,Z)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/411708/image.png)
Is it possible to export this surfaces into stl, iges, step or a similar CAD model?
If a body of this surface can be created and afterwards exported it's better for me, but just the surface is enough
I upload the numeric data in case someone needs it
Thanks in advance
0 Comments
Answers (1)
Monisha Nalluru
on 17 Nov 2020
You can export the surf plot values into a stl file using the following file exchange
Download the file exchange or add to path.
As an example
X=[x1,x2,x3,x4,x1]
Y=[y1,y2,y3,y4,y1]
Z=[Z_increase,Z_increase,Z_increase,Z_increase,Z_increase]
surf2stl('filename.stl',X,Y,Z) %exported the surf plot to stl format
0 Comments
See Also
Categories
Find more on Model Import 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!