[vtkusers] circle

Renaud Isabelle renauisa at yahoo.fr
Tue Aug 16 16:22:43 EDT 2005


Hi, 
 
I would like to draw a circle each time and where exactly the user clicks on my displayed image.
 
I saw examples to draw a sphere:
 
 vtkSphereSource* m_sphere = vtkSphereSource::New();
 vtkActor*  m_sphereActor = vtkActor::New();
 vtkPolyDataMapper* sphereMapper = vtkPolyDataMapper::New();
 sphereMapper->SetInput(m_sphere->GetOutput());
 m_sphereActor->SetMapper(sphereMapper);
 m_Renderer->AddActor( m_sphereActor );
 
But is there a way to draw a circle (that is empty disk and in 2D) instead of a filled sphere in 3D? Maybe  vtkSphereSource added to vtkActor2D could be a way?
 
I am not familiar with VTK for the moment, so, please, excuse me if this seems obvious....
 
Isabelle

		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050816/f4bce676/attachment.htm>


More information about the vtkusers mailing list