Exporting mesh generated by MATLAB to ASCII file?
3 次查看(过去 30 天)
显示 更早的评论
I have generated a 3D mesh from a STL file using the PDE toolbox. How can I extract the mesh in terms of numerical outputs in an ASCII file?
Here's the code:
importGeometry(model,'cad.stl');
generateMesh(model, 'Hmax',5);
figure
pdeplot3D(model)
0 个评论
采纳的回答
KSSV
2021-10-8
Have a look on the model.
model.Mesh
In the above you have elements as well as nodal connectivity. You can pick from there and use fprintf to write into ascii file.
0 个评论
更多回答(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!