[vtkusers] Plotting surface contour with overlaid mesh

Wes Turner wes.turner at kitware.com
Thu Feb 25 13:42:02 EST 2010


Use SetResolveCoincidentTopology from the mapper.

http://www.vtk.org/doc/nightly/html/classvtkMapper.html#aa2ea475413fed0b45566e33cc9f659e8

<http://www.vtk.org/doc/nightly/html/classvtkMapper.html#aa2ea475413fed0b45566e33cc9f659e8>If
you just want to see the edges and not extract them into a separate actor,
you can also turn display of the edges by turning on the EdgeVisibility

<http://www.vtk.org/doc/nightly/html/classvtkMapper.html#aa2ea475413fed0b45566e33cc9f659e8>
http://www.vtk.org/doc/nightly/html/classvtkProperty.html#a7cbadce1d984207ccabe3e75e63f11e4

<http://www.vtk.org/doc/nightly/html/classvtkProperty.html#a7cbadce1d984207ccabe3e75e63f11e4>i.e.
actor->GetProperty()->EdgeVisibilityOn()

<http://www.vtk.org/doc/nightly/html/classvtkMapper.html#aa2ea475413fed0b45566e33cc9f659e8>-
Wes

On Thu, Feb 25, 2010 at 12:44 PM, Ben Medina <ben.medina at gmail.com> wrote:

> Hello all,
>
> I have a structured grid, and I want to plot a surface contour with
> overlaid grid lines. To get the surface, I have a pipeline like this:
> surface grid -> vtkGeometryFilter -> vtkPolyDataMapper -> vtkActor
>
> To get the grid lines, I take the output of the geometry filter and
> extract edges:
> vtkGeometryFilter -> vtkExtractEdges-> vtkPolyDataMapper -> vtkActor
>
> However, the rendering of the lines clips the surface, leading to poor
> output as in the attached image. How can I lift the lines off the
> surface to get correct rendering?
>
> Thanks,
> Ben
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Wesley D. Turner, Ph.D.
Kitware, Inc.
Technical Leader
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100225/41492ce0/attachment.htm>


More information about the vtkusers mailing list