<div class="gmail_quote">2011/4/28 Huoling Luo <span dir="ltr">&lt;<a href="mailto:shuiling119@hotmail.com">shuiling119@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<div>Hi itk experts,</div><div><br></div><div>Can anyone tell me how to visualize itk::SpatialObjects in VTK? </div><div><br></div><div>For example, the code snip:</div><div>/////////////////////////////////////////////</div>
<div>typedef itk::CylinderSpatialObject   CylinderType;</div><div>CylinderType::Pointer myCylinder = CylinderType::New();</div><div><br></div><div>double radius = 3.0;</div><div>myCylinder-&gt;SetRadius(radius);</div><div>
<br></div><div>double height = 12.0; </div><div>myCylinder-&gt;SetHeight(height);</div><div>/////////////////////////////////////////////</div><div><br></div><div>How can I visualize &quot;myCylinder&quot; in VTK? I&#39;ve known that we can visualize itk::Mesh objects by using class itkMeshTovtkPolyData. What about itk::SpatialObject?</div>
<div><br></div><div>Thank you!</div><div><br></div><div>Best Regards,</div><div><br></div><font color="#888888"><div>Huoling</div></font></div></blockquote><div><br></div><div>Apparently this SOViewer (Spatial Object Viewer) is what you should use:</div>
<div><br></div><a href="http://www.vtk.org/Wiki/SOViewer">http://www.vtk.org/Wiki/SOViewer</a><br clear="all"><br>David</div>