<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [vtkusers] Converting PolyData to ImageData</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Paul,</FONT>
</P>
<P><FONT SIZE=2>This is the part of pipeline I used. But I am afraid that the Shepard method is too slow. Will someone please suggest a faster algorithm? Thanks.</FONT></P>
<BR>
<P><FONT SIZE=2> vtkShepardMethod *shepard = vtkShepardMethod::New();</FONT>
<BR><FONT SIZE=2> shepard->SetInput(polydata);</FONT>
<BR><FONT SIZE=2> ....</FONT>
<BR><FONT SIZE=2> vtkImageCast *imgcast = vtkImageCast::New();</FONT>
<BR><FONT SIZE=2> imgcast->SetInput(shepard->GetOutput());</FONT>
<BR><FONT SIZE=2> ....</FONT>
<BR><FONT SIZE=2> volumeMapper->SetInput(imgcast->GetOutput());</FONT>
<BR><FONT SIZE=2> ....</FONT>
</P>
<BR>
<P><FONT SIZE=2>Yang</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Paul McGuinness [<A HREF="mailto:mcguinpg@maths.tcd.ie">mailto:mcguinpg@maths.tcd.ie</A>] </FONT>
<BR><FONT SIZE=2>Sent: Friday, March 12, 2004 11:50 AM</FONT>
<BR><FONT SIZE=2>To: vtkusers</FONT>
<BR><FONT SIZE=2>Subject: [vtkusers] Converting PolyData to ImageData</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Hi All,</FONT>
</P>
<P><FONT SIZE=2>I am visualizing complex structures using Surface Evolver, using this software I output all the vertices and the facets information (coordinates, etc) into a datafile. I wrote a vtk program that reads in this information and using vtkPolydata vtkPoints vtkCellArray I rebuild my structure prefectly, but I would like to convert this structure which is polydata to imagedata such that I can do volume rendering on the structure and get some really interesting pictures.</FONT></P>
<P><FONT SIZE=2>Does anyone know how to do this, or an easier way I can do this?</FONT>
</P>
<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>Paul.</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>This is the private VTK discussion list. </FONT>
<BR><FONT SIZE=2>Please keep messages on-topic. Check the FAQ at: <<A HREF="http://public.kitware.com/cgi-bin/vtkfaq" TARGET="_blank">http://public.kitware.com/cgi-bin/vtkfaq</A>></FONT>
<BR><FONT SIZE=2>Follow this link to subscribe/unsubscribe: <A HREF="http://www.vtk.org/mailman/listinfo/vtkusers" TARGET="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</A></FONT>
</P>
</BODY>
</HTML>