how to use stlwrite function options
5 ビュー (過去 30 日間)
古いコメントを表示
Hi guys, i have to make a triangulation 3D of a solid of which i have the coordinates (x,y,z) of 20ooo points and i need to export the result (so the tetrahedra) to an stl file. How can I use properly the stlwrite function, in particular the option indicated with TRIANGULATION?
thanks a lot.
0 件のコメント
回答 (1 件)
DGM
2025 年 4 月 5 日
編集済み: DGM
2025 年 4 月 5 日
This obviously refers to FEX #20922. Assuming that the data is gridded, such as could be given to surf(), then:
[x y z] = sphere(21);
stlWrite('thing.stl',x,y,z,'triangulation','f')
By default, when given xyz data, the triangulation method is 'delaunay', which only works for data which is single-valued in x,y (e.g. a surface relief). If given something like this sphere, it will fail.
If you just have an unstructured list of xyz points (a point cloud), then that's a different story.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Delaunay Triangulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!