[vtkusers] A simple VTK file format definition issue?

David E DeMarle dave.demarle at kitware.com
Sat Jun 30 06:22:14 EDT 2012


Are the last two polygons concave?
On Jun 30, 2012 5:58 AM, "Alex Southern" <mrapsouthern at gmail.com> wrote:

> Hi,
>
> Iver been looking at this for a couple of hours and I just cant find the
> probelm.
> What is wrong with this geometry definition?
>
> The last 2 polygons do not show up correctly, they produce the desired
> polygon plus some additional unwanted planes, that flicker as you rotate
> the model. The problem must be in this definition as it also occurs in
> Paraview.
>
> Any help, have i got the format wrong or something?
>
> Thanks
> A.
>
> # vtk DataFile Version 3.0
> my VTK file
> ASCII
> DATASET POLYDATA
> POINTS 16 float
> 4.000000 3.000000 3.000000
> 4.000000 0.000000 3.000000
> 4.000000 0.000000 0.000000
> 4.000000 3.000000 0.000000
> 6.000000 3.000000 0.000000
> 6.000000 7.000000 0.000000
> 6.000000 7.000000 3.000000
> 6.000000 3.000000 3.000000
> 3.000000 7.000000 0.000000
> 3.000000 7.000000 3.000000
> 3.000000 4.000000 0.000000
> 3.000000 4.000000 3.000000
> 0.000000 4.000000 0.000000
> 0.000000 4.000000 3.000000
> 0.000000 0.000000 0.000000
> 0.000000 0.000000 3.000000
> POLYGONS 10 58
> 4 0 1 2 3
> 4 4 5 6 7
> 4 5 8 9 6
> 4 8 10 11 9
> 4 10 12 13 11
> 4 12 14 15 13
> 4 15 14 2 1
> 4 0 3 4 7
> 8 4 3 2 14 12 10 8 5
> 8 6 9 11 13 15 1 0 7
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<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 <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtkusers<http://www.vtk.org/mailman/listinfo/vtkusers>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120630/2b5a1663/attachment.htm>


More information about the vtkusers mailing list