I have 3D binary array which represents a volume, where a[x,y,z] = 0
indicates no object and a[x,y,z] = 1
indicates the object region.
I want to save this as a VTK file and view it in ParaView. What is the simplest way to achieve this? Suggestions for other approaches are welcome.
I looked through the VTK file format, but I have not found direct way to achieve what I need, just via other structures.