Hi,

Thanks for checking - I now resorted to using the respective VTK classes in a 
custom mapper and avoid using the MITK mappers. I would like to contribute - 
however, as of now I think I still lack the experience to make useful 
contributions in reasonable time since I'm still beginning to understand how 
things exactly work together in MITK. That may change once I finished my 
prototype and we start using MITK more widely in our department.

The grids actually contain point clouds with multiple attributes; some of which 
(e.g. velocity and pressure) I visualize as Volumes using the 
vtkProjectedTetrahedraMapper. Other attributes (e.g. wall-shear-stress) are 
displayed by mapping the grid as a surface, however I guess I'll have to keep 
using the UnstructuredMesh classes as I need to be able to display the volume 
data.

Kind regards,
Bertram

From: Dinkelacker, Stefan [mailto:[email protected]]
Sent: 22 March 2018 12:45
To: Bertram Sabrowsky-Hirsch <[email protected]>; 
[email protected]
Subject: RE: [mitk-users] Using mitk::UnstructuredGrid for series of grids

Hi,

as far as I know, unstructured grids in MITK have an experimental-like state as 
they are currently not used by anyone in our departments. So I would expect 
some more bugs and missing features. I wasn't even able to store a simple 
unstructured grid (the one that is attached to the ticket you opened a few days 
ago). All volume mapper options of unstructured grids crash. And so on, and so 
on, and I just spend a few minutes so far. I don't believe that we currently 
have enough resources to overhaul the whole thing, so contributing would be the 
most promising approach to get things done at the moment, sorry.

What types of data do your grids have at the moment, as the one mentioned above 
was just a surface or at least appeared to be one? In that case it could be a 
more promising path for you to import plain surfaces to MITK instead.

Best,
Stefan

From: Bertram Sabrowsky-Hirsch 
[mailto:[email protected]]
Sent: Mittwoch, 21. März 2018 11:19
To: [email protected]<mailto:[email protected]>
Subject: [mitk-users] Using mitk::UnstructuredGrid for series of grids

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