[Insight-users] How to visualize itk::SpatialObjects in VTK?

Huoling Luo shuiling119 at hotmail.com
Thu Apr 28 04:08:35 EDT 2011


Hi itk experts,
Can anyone tell me how to visualize itk::SpatialObjects in VTK? 
For example, the code snip://///////////////////////////////////////////typedef itk::CylinderSpatialObject   CylinderType;CylinderType::Pointer myCylinder = CylinderType::New();
double radius = 3.0;myCylinder->SetRadius(radius);
double height = 12.0; myCylinder->SetHeight(height);/////////////////////////////////////////////
How can I visualize "myCylinder" in VTK? I've known that we can visualize itk::Mesh objects by using class itkMeshTovtkPolyData. What about itk::SpatialObject?
Thank you!
Best Regards,
Huoling 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110428/327b8296/attachment.htm>


More information about the Insight-users mailing list