following up on the recent request of a certain collaborator of ours, here comes a function that extents the currently built-in marching cubes a bit. More specifically it
creates a surface for each label inn given label image
merges them together with vedo.merge()
returns the result as SurfaceData with (vertices, faces, label) where label corresponds to the respective label in the input.
I'm not sure whether it's smart in the long run to use the values column of the tuple for this, but as long as we can not pass metadata in a good way this will probably do.
Here's what I get from that from binary_blobs.tif:
Hi @haesleinhuepf ,
following up on the recent request of a certain collaborator of ours, here comes a function that extents the currently built-in marching cubes a bit. More specifically it
vedo.merge()
SurfaceData
with(vertices, faces, label)
wherelabel
corresponds to the respective label in the input.I'm not sure whether it's smart in the long run to use the
values
column of the tuple for this, but as long as we can not pass metadata in a good way this will probably do.Here's what I get from that from
binary_blobs.tif
:Label image
Labelled surface
LMKWYT :)