[vtkusers] unstructured grid + tetrahedrons

Jérôme jerome.velut at gmail.com
Fri Dec 11 04:45:35 EST 2009


You are right, polydata is intended to describe 0D (vertices), 1D (lines)
and 2D (polygons) cell. Tetrahedrons are the "simplest" 3D cells, such as
triangles are the "simplest" 2D cells, but vtkPolyData cannot have 3D cells.
However, a tetrahedron is composed of 4 vertices, 6 edges (lines) and 4
triangles (polygons) that you can *represents* thanks to a vtkPolyData. when
you render a tetrahedral mesh through a polydata, you don't "see" the
tetrahedrons, but their bounds.


Jerome

2009/12/11 Baliki B. <balikivtk at gmail.com>

> I tried vtkShrinkFilter and it worked.  My question is why using
> vtkShrinkFilter and pressing w key shows tetrahedrons and without it(e.g.
> using the original unstructured grid) doesn't? Is it something with the fact
> you say it results in "polydata" ?
>
> Why you give emphasis in "results in polydata" in both first two methods
> (vtkShrinkFilter and vtkExtractGeometry) ? Is something "wrong" the polydata
> we get?
>
> Also, i read in the book that polydata is types(vertices, lines, polygons
> and triangle strips) which is limited and that's why we use unstructured
> grid to represent a tetrahedron.
> Am i missing something?
>
>
> 2009/12/10 Dominik Szczerba <dominik at itis.ethz.ch>
>
>> Unfortunately, I will not have a possibility to write those examples this
>> time. A few quick comments follow below.
>>
>>
>> David Doria wrote:
>>
>>> On Thu, Dec 10, 2009 at 8:52 AM, Baliki B. <balikivtk at gmail.com> wrote:
>>>
>>>> Could you explain (with some code) a little bit more?
>>>>
>>>>
>>>> 2009/12/10 Dominik Szczerba <dominik at itis.ethz.ch>
>>>>
>>>>> You can see your tets in multiple ways:
>>>>>
>>>>> - extract cells by region
>>>>>
>>>>
>> There is a filter (vtkExtractGeometry) to extract parts of a volume mesh
>> NOT cutting the cells. Resulting is a polydata of course, but you see the
>> inside cells otherwise hidden. Combined with an interactive widget (e.g.
>> vtkBoxWidget) and edge visibility it gives a very good view.
>>
>>  - cell shrinking
>>>>>
>>>>
>> You can shrink all the cells by a factor (vtkShrinkFilter). This will
>> result in a polydata again, but you will see the separate cells (by their 4
>> shrinked triangles).
>>
>>
>>
>>>>> To see the associated data:
>>>>> - volume rendering
>>>>>
>>>>
>> see vtkVolume
>>
>>  - cut slices
>>>>>
>>>>
>> see vtkCutter
>>
>>  - clip
>>>>>
>>>>
>> see vtkClipDataSet
>>
>>  - contouring
>>>>>
>>>>
>> see vtkContourFilter
>>
>> Dominik
>>
>>
>>
>>>>> Dominik
>>>>>
>>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>>
>>> It's sounding like this may call for a couple of examples...
>>>
>>> Thanks,
>>>
>>> Captain Example
>>> _______________________________________________
>>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091211/8c680047/attachment.htm>


More information about the vtkusers mailing list