[vtkusers] Polyhedron with concave faces?

David E DeMarle dave.demarle at kitware.com
Mon May 2 08:33:34 EDT 2011


openGL doesn't render concave polygons correctly, and automatically
detecting and fixing that would slow down the common case where only
convex polygons occur, so VTK doesn't tesselate automatically.

I suggest you tesselate your data with the vtkTriangleFilter to show
the filled polygons (as you are already doing) and also apply
vtkExtractEdges to your raw data to show the edges.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Sun, May 1, 2011 at 4:58 PM, Orhun Birsoy <orhunbirsoy at gmail.com> wrote:
> Hi,
> I am trying to generate a vtkPolyhedron with concave faces, but the output
> isn't correct. Is it possible to have concave faces with vtkPolyhedron?
> Note that I was able to get the 'correct' output by using vtkPolyData and
> vtkTraingleFilter but, for my purposes that doesn't quite work either
> because vtkTraingleFilter introduces visible edges that the original object
> doesn't have. I need vtkProperty's EdgeVisibilityOn to show only original
> edges of the object.
> Thanks.
>
> --
> Orhun Birsoy
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list