[vtkusers] Drawing circles?

Luca Pallozzi Lavorante lucapl at rc.unesp.br
Tue Apr 19 07:47:39 EDT 2005


Saigopal Nelaturi wrote:

> Hi..
> I'd like to know how to draw circles within the render window with 
> floating point center and radius. vtkImageCanvasSource2D has a 
> DrawCircle method but this takes in only integer values of the center. 
> On the same subject, is there any function in vtk that will allow 
> sampling of uniformly distributed points on a circle or a line ... ?
>  
> Thanks in advance,
> Sai
>
>------------------------------------------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>  
>
Hi Saigopal,
you may laugh at it, but I have solved the problem using the 
vtkDiskSource class. I was able to draw some simple graphs. I don´t know 
if vtkXYPlotActor lets you draw circles (I think not). Of course, this 
solution would fit for less complicated graphs.

greetings

   Luca



More information about the vtkusers mailing list