[vtkusers] Plotting surface contour with overlaid mesh

Wes Turner wes.turner at kitware.com
Thu Feb 25 15:15:54 EST 2010


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

> Thanks, it works perfectly when
> vtkMapper::SetResolveCoincidentTopologyToPolygonOffset is called. Do
> you have an idea of what kind of performance hit is involved with
> this?
>
> No idea. :-)


> Also, I was unaware of the EdgeVisibility on the property. Is there a
> way to get it to render just the edges, and not the cells (like set
> SurfaceVisibilityOff())?
>
> If you just want to see the edges and not the cells, use property->
SetRepresentationToWireframe<http://www.vtk.org/doc/nightly/html/classvtkProperty.html#a2a4bdf2f46dc499ead4011024eddde5c>
 ()

- Wes

> Thanks,
> Ben
>
> On Thu, Feb 25, 2010 at 10:42 AM, Wes Turner <wes.turner at kitware.com>
> wrote:
> > Use SetResolveCoincidentTopology from the mapper.
> >
> 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/classvtkProperty.html#a7cbadce1d984207ccabe3e75e63f11e4
> > i.e. actor->GetProperty()->EdgeVisibilityOn()
> >
> > - 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
> >
>



-- 
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/446604c9/attachment.htm>


More information about the vtkusers mailing list