[vtkusers] how to draw polygons using vtkPolyData

David E DeMarle dave.demarle at kitware.com
Tue Apr 5 09:28:06 EDT 2016


The rendering code does not support concave polygons. You will have to
break that up convex polygons for OpenGL and thus VTK to draw it correctly.
Apply vtkTriangleFilter to do that as suggested here
http://markmail.org/thread/33ptqhti5zud4rcv

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, Apr 5, 2016 at 4:59 AM, 路明月 <bmoonlu at yeah.net> wrote:

> Hi All,
> I have a question about vtkPolyData.I want to draw a polygon like shp.jpg.
> But when I use the vtkPolyData to draw, it gave me the result like
> shp2.jpg.Maybe I make a misunderstanding somewhere.Please help me to draw
> polygons by vtkPolyData.
> Thank you for your help.
> Your sincerely,
> Joy Wang
>
>
>
>
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160405/08f95baf/attachment.html>


More information about the vtkusers mailing list