Voxel2mesh - plotVoxelArray

Creates and/or displays triangulated or quad mesh from binary or numeric arrays.
ダウンロード: 228
更新 2020/5/29

ライセンスの表示

There are several functions with similar results on the FileExchange. Compared to the functions I have tested this version is faster (it uses fewer for-loops/iterations) and more compatible with very displaying large arrays (it does not involve the construction of expanding intermediary arrays).

Voxel2mesh - creates triangulated or quad mesh from voxel arrays; the
mesh represents the surface faces of boundary voxels in the input array
(i.e. each voxel face, facing the outside of the object. Voxels are treated as 1x1x1 cubes, cube-faces facing the "outside of the object" are part of the output mesh)

all voxels with value > 0 are considered as part of the object
all voxels with value == 0 are considered background/outside the object

optionally a vector that assigns the numeric value (greyscale) of each voxel to the corresponding mesh vertices can be saved (e.g. to define mesh colours for display)

mesh triangles follow the right-hand rule with face normals pointing
outwards

plotVoxelArray - calls Voxel2mesh to display voxel array as patch object
the colour of the output mesh can be defined manually or by the voxel array (by default the mesh is blue)

引用

J. Benjamin Kacerovsky (2026). Voxel2mesh - plotVoxelArray (https://jp.mathworks.com/matlabcentral/fileexchange/75240-voxel2mesh-plotvoxelarray), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2020a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加
バージョン 公開済み リリース ノート
1.1.0

Colour Update
– added options for Voxel2mesh to save a vector of vertex colours defined by the numeric values of the voxel array
– added option to plot to plotVoxelArray to define mesh colours manually (as string or RGB) or from the voxel array

1.0.4

small changes to the description

1.0.3

fixed some comments

1.0.2

.

1.0.1

.

1.0.0