How can I convert surface plot into STL format file?
이전 댓글 표시
I want to know whats the further process to convert the surface plot into STL file ?
I have downloaded the file from https://www.mathworks.com/matlabcentral/fileexchange/4512-surf2stl then whats the next process to follow it?
댓글 수: 2
KSSV
2022년 5월 16일
Read the help of function, it is clearly shown what to do.
siddhartha paudel
2022년 5월 16일
답변 (1개)
KSSV
2022년 5월 16일
[X,Y,Z] = peaks(100) ;
surf2stl('test.stl',X,Y,Z)
댓글 수: 9
siddhartha paudel
2022년 5월 16일
KSSV
2022년 5월 16일
What error you are getting?
siddhartha paudel
2022년 5월 16일
KSSV
2022년 5월 16일
You are not running/ calling the function properly.
- Go to the link: https://in.mathworks.com/matlabcentral/fileexchange/4512-surf2stl. Down load the function into your pc.
- Go to the folder, where you have downloaded/ copied the function surf2stl.
- DEfine your mesh, Check the example code I have given.
- Note that when you run/ call the function, the function should be in your present working directory.
siddhartha paudel
2022년 5월 16일
siddhartha paudel
2022년 5월 16일
KSSV
2022년 5월 16일
You have to change the path to the folder, where you have the function.
Charles
2023년 5월 17일
I am able to use the surf2stl file and functionalities to convert "surf" (mesh) into .stl
However, for "fsurf" (function surf, mesh), the functionalities does not seem to work.
Does anyone have experience on how to resolve this issue?
(For the typical X,Y,Z surf, the surf2stl works fine. However, for X,Y,Z defined as functions, hence fsurf, the surf2stl no longer works: "Wrote 0 facets"). Thank you for your help.
DGM
2025년 6월 29일
카테고리
도움말 센터 및 File Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!