How can I specify the voxel size for converting a stl file into a volume?

9 ビュー (過去 30 日間)
CLARA
CLARA 2019 年 4 月 4 日
コメント済み: DGM 2025 年 4 月 5 日
I am using the function: mesh voxelization https://es.mathworks.com/matlabcentral/fileexchange/27390-mesh-voxelisation, but I don't see how I can specify the voxel size, I can specify the dimensions as input but I don't know which voxel size it is using. Polygon2voxel https://es.mathworks.com/matlabcentral/fileexchange/24086-polygon2voxel is also an option but I don't know how to specify the voxel size neither. Any suggestion is really welcomed. Thank you.

採用された回答

Timo Schmid
Timo Schmid 2020 年 11 月 19 日
移動済み: DGM 2025 年 4 月 5 日
It's in the functions description: function Volume=polygon2voxel(FV,VolumeSize,mode,Yxz)
Therefore: vol = polygon2voxel(FV,[120, 120, 120],...);
  1 件のコメント
DGM
DGM 2025 年 4 月 5 日
Correct. Both tools are documented and include usage examples.
Here is one additional example of using #27390. The voxel size is either explicitly defined by the grid pitch, or it's implicitly specified as a fraction of the bounding box size.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by