[vtkusers] Overlaping view props in a rendered
Sarah Macumber
S.Macumber at QuestReliability.com
Mon Aug 4 13:12:47 EDT 2008
Hi David,
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. Those functions exist in the documentation all the way back to version 4.0 so I do not know why they don't appear in the ActiViz.NET release which wraps 5.2.
Anyone know why these functions are missing?
Sarah
________________________________
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