Hi,

I never used unstructured grids but from a quick look there's at least a 
mitkUnstructuredGridMapper2D class, which is responsible for generating the 2D 
representations of an unstructured grid. The GenerateDataForRenderer() and 
Paint() methods are the interesting parts so you may want to step through them 
with your data to figure out what causes the difference regarding your expected 
result. Sorry, this is low-level but it should give you an idea what's going 
wrong in a few minutes.

Best,
Stefan

From: Emmanuel Cosnard [mailto:emmanuel.cosn...@outlook.fr]
Sent: Monday, October 14, 2019 3:08 PM
To: 'mitk-users@lists.sourceforge.net' <mitk-users@lists.sourceforge.net>
Subject: [mitk-users] Volume rendering vtk files, 2D views

Hello,

I am trying to volume render a .vtk file of type unstructured grid.
My code for that is:

    mitk::VtkRepresentationProperty::Pointer reprProp = 
mitk::VtkRepresentationProperty::New();
    mitk::DataNode::Pointer nodes = dataNodes->at(0);
    nodes->SetProperty("volumerendering", mitk::BoolProperty::New(true));
It is working very good on the 3D view, but on the 2D views (Axial, Sagital and 
Coronal), we don't see anything :


[cid:image001.png@01D582A9.0DD34090]

Does anyone know how to fix this? Is there any option I have to activate on the 
QmitkStdMultiWidget object used for the display?

Thank you and regards,

Emmanuel


_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to