Export surfaces to CAD (stl,step, iges, ...)

67 views (last 30 days)
Ander Azpitarte
Ander Azpitarte on 12 Nov 2020
Answered: Monisha Nalluru on 17 Nov 2020
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)
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

Answers (1)

Monisha Nalluru
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

Categories

Find more on Model Import in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!