[vtkusers] Overlaping view props in a rendered

Thompson, David C dcthomp at sandia.gov
Mon Aug 4 13:17:00 EDT 2008


> That is a great idea except for the fact that none
> of the SetResolveCoincidentTopology( ) functions
> seem to exist in the Dot Net wrapped version of VTK.
> ...
> Anyone know why these functions are missing?

They aren't inside //BTX ... //ETX markers, so I have
no idea.

    David

________________________________

From: Thompson, David C [mailto:dcthomp at sandia.gov]
Sent: Fri 8/1/2008 8:18 PM
To: Sarah Macumber; Gerrick Bivins; VTK-users
Subject: RE: [vtkusers] Overlaping view props in a rendered

> Hi Gerrick, thanks but I don't think that is exactly what I am after
> as my data exactly overlaps.
> I have a vtkUnstructuredGrid of which I select a portion of and
> create a new vtkUnstructuredGrid from.  Thus I have the original
> grid and then a second subsampled grid.  I want to draw the original
> grid with the selected grid on top so the cells will actually overlap
> exactly but each grid has a different lut so you can see the selected
> portion.

Hi Sarah,

    Take a look at vtkMapper::SetResolveCoincidentTopology(). It uses
OpenGL's glPolygonOffset() to move the geometry slightly towards
the camera. It isn't perfect because it takes a couple of parameters
that aren't always easy to choose appropriately, but it works
relatively well.

    David








More information about the vtkusers mailing list