Page MenuHomePhabricator

vtkUnstructuredGrid does not render properly
Closed, ResolvedPublic

Assigned To
None
Authored By
zelzer
Sep 30 2010, 2:49 PM
Referenced Files
F615: QmitkStentBundleView.cpp
Oct 20 2010, 12:36 PM
F614: ansysFEMresults.h
Oct 20 2010, 12:35 PM
F613: ansysFEMresults.cxx
Oct 20 2010, 12:34 PM

Description

The MITK mappers for a vtkUnstructuredGrid may have some issues. Known issues so far:

  • Setting visibility off and on again does not show the grid

Event Timeline

[SVN revision 26506]
FIX (#5597): fixing visibility issue with unstructured grids

(In reply to comment #1)

[SVN revision 26506]
FIX (#5597): fixing visibility issue with unstructured grids

Hello Sascha,
many thanks for working on the visibility problem. What do I have to do for working now with the fixed files? Which file do I have to update?
Beste regards,
Sandra

Reader for external file with unstructured mesh and building vtkUnstructuredMesh

relevant method: makeFEresult

Hello Sascha,

the uploaded files concern the problem colouring the nodes of the unstructured mesh. The file with the mesh information itself was sent to your mail address.

Thanks for your help.
Sandra

(In reply to comment #2)

(In reply to comment #1)

[SVN revision 26506]
FIX (#5597): fixing visibility issue with unstructured grids

Hello Sascha,
many thanks for working on the visibility problem. What do I have to do for
working now with the fixed files? Which file do I have to update?
Beste regards,
Sandra

Hi,

if you cannot do "svn update" on your source tree, have a look at this file:

http://svn.mitk.org/trunk/mitk/Modules/MitkExt/Rendering/mitkUnstructuredGridVtkMapper3D.cpp

the fix is simple and consists of adding line 160.

I will have a look at the scalars during the next days.

(In reply to comment #7)

(In reply to comment #2)

(In reply to comment #1)

[SVN revision 26506]
FIX (#5597): fixing visibility issue with unstructured grids

Hello Sascha,
many thanks for working on the visibility problem. What do I have to do for
working now with the fixed files? Which file do I have to update?
Beste regards,
Sandra

Hi,
if you cannot do "svn update" on your source tree, have a look at this file:
http://svn.mitk.org/trunk/mitk/Modules/MitkExt/Rendering/mitkUnstructuredGridVtkMapper3D.cpp
the fix is simple and consists of adding line 160.
I will have a look at the scalars during the next days.

Hello Sascha,

many thanks for your help - now visibility on and off works fine! Really nice that you also look after the scalar colouring problem.

Best regards,
Sandra

[SVN revision 27246]
ENH (#5597): Histogram classes for unstructured grid.

[SVN revision 27251]
ENH (#5597): Reworked the unstructured grid mapper

Scalars are now rendered properly. Still work in progress.

Still missing features:

  • Clipping in 3D not supported
  • 2D cuts do not render point scalars

Hello Sascha,

many thanks for helping with the vtkUnstructeredGrid and scalars. Everything works fine now with floating values. Are you working on clipping in 3D which is so far not supported or is it not an issue which can be expected in the future?

Best regards,
Sandra

Hi Sandra,

good to hear that it works for you.

I had clipping working some time ago, but was not really happy with the design. If you urgently need it, I might be able to create a patch.

However, that is definitely something on my TODO list (rather sooner than later).

Hello Sascha,

the 3D-clipping method is not urgent for me. Maybe in the middle of 2011.

Best regards,
Sandra

Resetting all bugs without active assignee flag to "CONFIRMED". Change status to IN_PROGRESS if you are working on it.

Hi Sascha,
is this bug still on your ToDo List? :)

Is this still on your list Sascha?

Theoretically yes. If someone wants to work on, feel free to do so.

[29b7b1]: Merge branch 'bug-5597-unstructured-grid-2d-rendering'

Merged commits:

2012-08-01 01:33:39 Sascha Zelzer [b61436]
Fixed polydata outline rendering in 2d cuts for unstructured grids.


2012-08-01 01:39:56 Sascha Zelzer [3a2b7f]
In the case of polydata with celldata for lines, use the correct index.


2012-08-01 01:39:47 Sascha Zelzer [6db910]
Removed tabs.


2012-08-01 01:32:01 Sascha Zelzer [9acd15]
Make the Expand(uint timestep) method public.


2012-08-01 01:31:31 Sascha Zelzer [ac27b0]
Reuse code from vtkCutter.

Closing bug. A new bug for the missing clipping feature will be created.