[vtkusers] VTK File Writing
Alex Southern
mrapsouthern at gmail.com
Wed Aug 11 08:48:59 EDT 2010
Ha of course, I knew that just didnt put it all together thanks.
So I guess the solution is to split the polygon into triangles? Is there
not a already defined algorithm to do this for an abitrary polygon? If
so where can I find it... ?
Thanks
Alex
On 11.8.2010 15:41, Bill Lorensen wrote:
> http://en.wikipedia.org/wiki/Convex_polygon
>
>
> On Wed, Aug 11, 2010 at 8:36 AM, Alex Southern<mrapsouthern at gmail.com> wrote:
>
>> Hmmm,
>>
>> What do you mean by convex? The geometry has no curves in it. Its just a 6
>> sided polygon.
>>
>> I must be missing something... please explain.
>>
>> Thanks
>> Alex
>>
>> On 11.8.2010 15:33, Sebastien Jourdain wrote:
>>
>>> A ploygon cell in VTK can not be convex. So you will have to split it
>>> in two cells.
>>> And I don't know if there is an automatic way to do it by using a
>>> given filter in VTK and writing the file again.
>>>
>>> Seb
>>>
>>> On Wed, Aug 11, 2010 at 7:25 AM, Alex Southern<aps at tml.hut.fi> wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> Could you guys take a look at this vtk file I wrote, can you see anything
>>>> wrong with it? I can't, but if you take a look at the JPG of paraview
>>>> screenshots, you will see that the single polygon looks fine in wire
>>>> frame
>>>> mode but has some weird error when viewed as a surface, this is happening
>>>> with a few files I have written, but the is the most basic geometry it
>>>> occurs with.
>>>>
>>>> JPG at http://www.tml.tkk.fi/~aps/<http://www.tml.tkk.fi/%7Eaps/>
>>>>
>>>> Thanks
>>>> Alex
>>>>
>>>> # vtk DataFile Version 3.0
>>>> VTK File Exmaple
>>>> ASCII
>>>> DATASET POLYDATA
>>>> POINTS 6 float
>>>> 0.0 81.8897637795276 0.0
>>>> 43.7007874015748 81.8897637795276 0.0
>>>> 43.7007874015748 150.748031496063 0.0
>>>> 94.9606299212598 150.748031496063 0.0
>>>> 94.9606299212598 0.0 0.0
>>>> 0.0 0.0 0.0
>>>> POLYGONS 1 7
>>>> 6 0 1 2 3 4 5
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>> _______________________________________________
>> 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