[vtkusers] Converting from rectilinear to polydata
Bill Lorensen
bill.lorensen at gmail.com
Sat Aug 24 13:27:44 EDT 2013
You do not need to convert the rectilinear grid to an unstructured grid.
vtkDataSetSurfaceFilter will convert a rectilinear grid to polydata.Recall
that vtkDataSetSurfaceFilteronle produces polydata for the surface of the
dataset.
On Sat, Aug 24, 2013 at 1:22 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
> Post a minimal, compilable example that illustrates the problem.
>
>
> On Thu, Aug 22, 2013 at 12:50 PM, ThinkFlow <neto at caltech.edu> wrote:
>
>> Hi,
>>
>> I am trying to convert a vtkrectilineargrid to a vtkpolydata. I am doing
>> this by first converting from vtkrectilineargrid to an unstructured grid
>> (with tetrahedra) by using vtkRectilinearGridToTetrahedra, and then
>> converting the unstructured grid to polydata by using
>> vtkDataSetSurfaceFilter . However, when I try to render the polydata, I
>> get
>> an error saying that
>>
>> vtkWindowedSincPolyDataFilter (0x143aaf0): No data to smooth!
>>
>> My code for the two conversions are basically modified versions of
>> http://tinyurl.com/kbu8dh5 and http://tinyurl.com/lzlnurs , and are
>> attached.
>>
>> DataSetSurfaceFilter.cxx
>> <http://vtk.1045678.n5.nabble.com/file/n5722972/DataSetSurfaceFilter.cxx>
>> RectilinearGridToTetrahedra.cxx
>> <
>> http://vtk.1045678.n5.nabble.com/file/n5722972/RectilinearGridToTetrahedra.cxx
>> >
>>
>> Thanks,
>>
>> Naoki
>>
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Converting-from-rectilinear-to-polydata-tp5722972.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130824/fe57938d/attachment.htm>
More information about the vtkusers
mailing list