[vtkusers] A problem with rendering lines on a surface

Ken Martin ken.martin at kitware.com
Tue Jul 17 13:21:58 EDT 2018


Did you

  //@{
  /**
   * Set/Get a global flag that controls whether coincident topology (e.g.,
a
   * line on top of a polygon) is shifted to avoid z-buffer resolution (and
   * hence rendering problems). If not off, there are two methods to choose
   * from. PolygonOffset uses graphics systems calls to shift polygons,
lines
   * and points from each other. ShiftZBuffer is a legacy method that used
to
   * remap the z-buffer to distinguish vertices, lines, and polygons, but
   * does not always produce acceptable results. You should only use the
   * PolygonOffset method (or none) at this point.
   */
  static void SetResolveCoincidentTopology(int val);
  static int  GetResolveCoincidentTopology();
  static void SetResolveCoincidentTopologyToDefault();
  static void SetResolveCoincidentTopologyToOff()
    { SetResolveCoincidentTopology(VTK_RESOLVE_OFF) ;}
  static void SetResolveCoincidentTopologyToPolygonOffset()
    { SetResolveCoincidentTopology(VTK_RESOLVE_POLYGON_OFFSET); }
  static void SetResolveCoincidentTopologyToShiftZBuffer()
    { SetResolveCoincidentTopology(VTK_RESOLVE_SHIFT_ZBUFFER); }
  //@}


specifically

  mapper->SetResolveCoincidentTopologyToPolygonOffset();  ?


On Mon, Jul 16, 2018 at 9:43 PM, pnt1614 <minpu.code at gmail.com> wrote:

> Let's me describe my situation, first I pick many points and then render
> all
> cell edges around those points in different color. Everything is okay but
> when I rotate the camera, there are some edges disappeared. I am not sure
> what the problem is but it looks like a z-fighting problem. I have attached
> two images to show this problem.
> <http://vtk.1045678.n5.nabble.com/file/t342361/Image1.jpg>
> <http://vtk.1045678.n5.nabble.com/file/t342361/Image2.jpg>
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180717/9f08c270/attachment.html>


More information about the vtkusers mailing list