how to save a PDE meshed stl to file
3 次查看(过去 30 天)
显示 更早的评论
By using PDE Toolbox an STL file is meshed. can we save the meshed geometry to file format ?
回答(1 个)
Rahul
2025-5-15
You can save the mesh obtained from an '.stl' file using the PDE toolbox in a text file using the following steps:
- Create a PDE model using 'createpde' function.
- Obtain the geometry into the model from the '.stl' file using 'importGeometry' function.
- Generate the mesh using 'generateMesh' function.
- Now after obtaining the mesh, we can obtain the 'Nodes' and 'Elements' and use the 'dlmwrite' or 'writematrix' function to save them individually in text files.
The following MathWorks documentations can be referred:
'createpde': https://www.mathworks.com/help/pde/ug/createpde.html
'importGeometry': https://www.mathworks.com/help/pde/ug/pde.pdemodel.importgeometry.html
'writematrix': https://www.mathworks.com/help/matlab/ref/writematrix.html
Thanks.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!