[vtkusers] vtkSmoothPolyDataFilter + unstructuredGrid

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 11 10:52:26 EST 2009


The SmoothPolyData does not modify the order of the points, just their
locations. And, you said that GeometryFilter does not change the
number of points. So, after Smoothing, you copy the original
unstructured grid into a new unstructured grid and set the points of
the new unstructured grid to the points output by the smoother. The
resulting unstructured grid will have the boundary vertices smoothed,
but no interior points smoothed.

It might work,

Bill

On Fri, Dec 11, 2009 at 10:40 AM, Bill Chivas <noo134 at googlemail.com> wrote:
> vtkGeometryFilter works fine. I wonder if i could get back to
> unstructuredGrid and hexahedrons by using the points.
> I noticed that the number of points are the same in unstructuredGrid and
> vtkGeometryFilter (vtkPolyData).
> Could i "reproduce" the original hexahedron topology?
>
> Thanks,
> Bill
>
> 2009/12/11 David Gobbi <david.gobbi at gmail.com>
>>
>> On Fri, Dec 11, 2009 at 7:11 AM, Bill Chivas <noo134 at googlemail.com>
>> wrote:
>> > Hello all,
>> >
>> > I would like to use vtkSmoothPolyDataFilter  on an unstructuredGrid, but
>> > i
>> > read the particular filter applies only to vtkPolyData.
>> > My unstructuredGrid consists of hexahedrons.
>> > How could i use the filter?
>> > One idea i thought is to extract the surface iterately and apply to
>> > these
>> > surfaces, but i don't know if it's ok.
>>
>> I've seen some people create a "skin" polydata with vtkGeometryFilter,
>> apply the smoothing to the "skin" and then use a custom filter to
>> propagate the smoothing throughout the interior of their mesh.  The
>> vtkGeometryFilter is a basic anything-to-polydata filter, so it is
>> easy to use.  The final step of using the smoothed polydata to create
>> a smoothed mesh is nontrivial, though.
>>
>>    David
>
>
> _______________________________________________
> 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