Hi,

I am trying to import and visualize CFD data from an external tool in MITK. I 
figured I can use mitk::UnstructuredGrid for this purpose, since it has a 
m_GridSeries member. I do have the data for the time steps in separate .vtu 
files that I load as separate mitk::UnstructuredGrid instances that I use to 
extract the vtk::UnstructuredGrid (GetVtkUnstructuredGrid)  and assemble in one 
mitk::UnstructuredGrid instance (SetVtkUnstructuredGrid with the timestep) that 
contains all timesteps. Everything works well this far: The timesteps show up 
in the DataNodes Details widget, the m_GridSeries member is filled and I do see 
the first timestep in the 3D visualization. However, the time slider (in the 
ImageNavigator widget) does not seem to work. I called GetUpdatedTimeGeometry 
after assembling the UnstructuredGrid to be sure and I confirmed that the time 
geometry does contain multiple timesteps, but the ImageNavigator widget seems 
not to recognize that.

Is my approach right so far (assemble the mitk::UnstructuredGrid from multiple 
instances) or is there a better approach and what do I miss?

This is what the details widget shows for the data node containing my assembled 
mitk::UnstructuredGrid:
 UnstructuredGrid (0000024FC36D6870)

     TimeGeometry:     ProportionalTimeGeometry (0000024FC365B400)
       TimeSteps: 51
       FirstTimePoint: 0
       StepDuration: 1 ms
       Time Bounds: 0 - 51

       GetGeometryForTimeStep(0):       Geometry3D (0000024FC27CA060)
         IndexToWorldTransform:
        Matrix:
          1 0 0
          0 1 0
          0 0 1
        Offset: [37.4872, -32.9024, -18.974]
        Center: [0, 0, 0]
        Translation: [37.4872, -32.9024, -18.974]
        Inverse:
          1 0 0
          0 1 0
          0 0 1
        Scale : 1 1 1
         BoundingBox:         ( 2.35031,11.1689 9.53366,15.3866 7.2686,13.5972  
)
         Origin: [37.4872, -32.9024, -18.974]
         ImageGeometry: 0
         Spacing: [1, 1, 1]

Thank you in advance!

Kind regards,
Bertram
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to