[vtkusers] Convert vtkImageData to vtkPolyData
Boehm, Lukas
Lukas.Boehm at cellent.de
Mon Nov 19 06:42:14 EST 2012
Hello,
I've got the following situation: In the past I had to visualize some isolines with vtkMarchingSquares filter. The input data for this filter was a vtkImageData object. The vtkAlgorithmOutput object, which is generated by vtkMarchingSquares, was clipped by using vtkExtractPolyDataGeometry.
So the pipeline was: vtkImageData => vtkMarchingSquares => vtkExtractPolyDataGeometry
Now I want to visualize the same data as a heatmap. So I take the image data and pass it to vtkDataSetMapper for visualization. The pipeline is: vtkImageData => vtkDataSetMapper
This works also fine. Now I want to clip this heatmap, like I did with the output from vtkMarchingSquares. But I get the following error when using vtkExtractPolyDataGeometry:
ERROR: In ..\..\..\..\vtksource-prefix\src\vtksource\Filtering\vtkDemandDrivenPipeline.cxx, line 827
vtkStreamingDemandDrivenPipeline (188AEF28): Input for connection index 0 on input port index 0 for algorithm vtkExtractPolyDataGeometry(188AEEC8) is of type vtkImageData, but a vtkPolyData is required.
Pipeline is here: vtkImageData => vtkExctractPolyDataGeometry => vtkDataSetMapper
So it tells me, I've got to convert the vtkImageData to vtkPolyData. Is this right? How can I convert this?
If you did not understand my problem, feel free to ask. I'll try to explain it better :)
Kind regards,
Lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121119/1b1f8634/attachment.htm>
-------------- next part --------------
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cellent Aktiengesellschaft
Vorsitzender des Aufsichtsrates: Dr. Martin Setzer
Vertretungsberechtigter Vorstand: Andreas Schwegler
Gerichtsstand: Amtsgericht Stuttgart, HRB 22791
Umsatzsteuer-ID: DE 226611517
Firmensitz: Stuttgart
Diese EMail sowie etwaige Anlagen sind ausschliesslich fuer den Adressaten bestimmt und koennen vertrauliche oder gesetzlich
geschuetzte Informationen enthalten. Wenn Sie nicht der bestimmungsgemaesse Empfaenger sind, unterrichten Sie bitte den Absender
und vernichten Sie diese Mail. Anderen als dem bestimmungsgemaessen Adressaten ist es untersagt, diese EMail zu speichern,
weiterzuleiten oder ihren Inhalt, auf welche Weise auch immer, zu verwenden. Wir verwenden aktuelle Virenschutzprogramme.
Fuer Sch?den, die dem Empfaenger gleichwohl durch von uns zugesandte, mit Viren befallene EMails entstehen, schliessen wir jede Haftung aus.
The information contained in this e-mail or attachments is intended only for its addressee and may contain confidential and/or
privileged information. If you have received this e-mail in error, please notify the sender and delete the e-mail. If you are not the
intended recipient, you are hereby notified, that saving, distribution or use of the content of this e-mail in any way is prohibited.
We use updated virus protection software. We do not accept any responsibility for damages caused anyhow by viruses transmitted via e-mail.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121119/1b1f8634/attachment-0001.htm>
More information about the vtkusers
mailing list