[vtkusers] Overlaping view props in a rendered
Sarah Macumber
S.Macumber at QuestReliability.com
Mon Aug 4 13:54:47 EDT 2008
Opps, totally my mistake, I didn't expect them to be static & wasn't looking there.
Thanks Dave,
Sarah
________________________________
From: David Cole [mailto:david.cole at kitware.com]
Sent: Mon 8/4/2008 12:41 PM
To: Sarah Macumber
Cc: Thompson, David C; Gerrick Bivins; VTK-users
Subject: Re: [vtkusers] Overlaping view props in a rendered
They are not missing. They are static.
Reference them like this:
vtkMapper.SetResolveCoincident......
HTH,
David Cole
On Mon, Aug 4, 2008 at 1:12 PM, Sarah Macumber <S.Macumber at questreliability.com> wrote:
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