It seems that OpenVDBReader shrinks the maximum boundary while loading vdb into partitioned dataset collection.
Is it an intended behavior? If so, is there a way to avoid it? Thank you!
And after checking the Merge Image Volumes on VDB reader, the contour function gets Bounds from the whole structure. So the opening surfaces are closed.
In this testcase, the test1 grid has Bounds (0, 139, 0, 287, 239, 257) and test2 grid has Bounds (0, 140, 0, 288, 289, 296). However, in the vdb file, the boundary of test1 is (0,140, 0, 288, 239, 258) and that of test2 is (0, 141, 0, 289, 289, 297). Which has been confirmed an intended behavior by your previous reply.
However, I found out merge image volume helps because the Bounds of merged grid became (0, 140, 0, 288, 239, 296) and the contour function can then count on the missing surface. And hence I realize Paraview do load the data, but it shrinks the Bounds for safety purpose.
So what I mean here is: can I tell the function to consider larger Bounds to count on the missing part.
My suspect is that, while doing contouring, it considers the Bounds of the contourby element. And merge image volume make it consider the Bounds of the whole structure (also shrunken, but large enough) instead of the shrunken Bounds of the grid itself.
The Bounds of the Contour1without merge image volume:
0 to 139 (delta: 139)
0 to 287 (delta: 287)
240.286 to 256.761 (delta: 16.4751)
The Bounds of the Contour1with merge image volume:
0 to 140 (delta: 140)
0 to 288 (delta: 288)
240.286 to 256.761 (delta: 16.4751)
Ok, I see it now. To me it looks like the “correct” result is the one with the smaller bounds. ParaView is just adding data on the side that causes this “closing” effect in your contour, but, in truth, it should not be closed. Closing the surface itself is more in the realms of the Vespa project @Charles_Gueunet
Yes, I agree the opening surface is the “correct” behavior of paraview. However, I want to point out that the structure should be closed according to the .vdb file. It is open due to the intended shrink on the boundary. It would be helpful if you can provide any clue about the following questions.
How to “fake” bounds to cheat contour filter?
Is there another contouring way that can close opening surface itself?