FW: [vtkusers] Combined surface + wireframe view

John Platt jcplatt at lineone.net
Mon Jan 12 17:09:27 EST 2004


Hi Malcolm,

I didn't use the 2 actor approach because different mappers are used for
each actor and I wasn't sure which mapper should be used to resolve the
coincident topology or even if it would work at all. Either mapper seems
to work OK. Do you know if this is a happy coincidence?

Many thanks.

John

-----Original Message-----
From: Malcolm Drummond [mailto:malcolm at geovision.co.za] 
Sent: 12 January 2004 14:13
To: John Platt
Subject: Re: [vtkusers] Combined surface + wireframe view

Hi John

I think you could just use separate actors for edges and geometry, so
you
don't have to worry about setting up scalar values etc.

Malcolm

----- Original Message -----
From: "John Platt" <jcplatt at lineone.net>
To: <vtkusers at vtk.org>
Sent: Saturday, January 10, 2004 12:56 AM
Subject: FW: [vtkusers] Combined surface + wireframe view


Hi Malcolm,

That did the trick - thanks.

To achieve the combined view I am using vtkAppendPolyData with 2 inputs

        vtkUnstructuredGrid->vtkGeometryFilter  -------------  1
                                    |
                                    |------ vtkFeatureEdges -- 2

changing the cell scalar attribute data in vtkFeatureEdges before it is
connected to vtkAppendPolyData to get the required edge colour. Is there
an easier route?

By setting the actor colour the same as the background, I was hoping to
get the effect of a "hidden" wire frame. It would be very useful to have
a vtkProperty::SetLineColor() to avoid messing with the scalar
attributes to get the colours through a LUT (EdgeVisibility would be
better still).

Thanks again.

John Platt





-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Malcolm Drummond
Sent: 08 January 2004 22:20
To: vtkusers
Subject: Re: [vtkusers] Combined surface + wireframe view

Hi John

Have a look at the static vtkMapper method SetResolveCoincidentTopology

HTH
Malcolm
----- Original Message -----
From: John Platt
To: vtkusers at vtk.org
Sent: Thursday, January 08, 2004 11:55 PM
Subject: [vtkusers] Combined surface + wireframe view

Hi vtkUsers,

I would like to display both cell edges and coloured cell faces using
the same vtkDataSetMapper (surface + wireframe combined).
EdgeVisibilityOn() looked like the solution but it does not appear to
have been implemented for vtkOpenGLPolyDataMapper.

I tried using two superimposed actors with surface and wireframe
representation set in the mappers but the cell edges were broken by the
cell face colour. One solution may be to slightly inflate the wireframe.

Has anybody managed to achieve this effect or tried to implement
EdgeVisibilityOn()?

Any suggestions would be greatly appreciated.

John Platt


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers






More information about the vtkusers mailing list