Convert from itk.Mesh[itk.F,3] to itk.Mesh[itk.SS,3]


itk.MeshFileReader and itk.TriangleMeshToBinaryImageFilter don’t share a common mesh type.
So I need to load a itk.F/itk.D mesh and convert it to a itk.SS/itk.UC/itk.US mesh.

Does anyone know how to do that?

Problem example: (58.7 KB)
vtk version 8.1.2
itk version 5.0.1

Anyone? :pleading_face:

Perhaps @matt.mccormick. But probably TriangleMeshToBinaryImageFilter need itk.F mesh specified instead of int mesh in its Python wrapping definition.

Hello @EmileSonneveld!

@dzenanz is right. Here is a patch:

1 Like