[vtkusers] Re: draw a circle

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Nov 14 15:08:15 EST 2006


Zhang, Kewu (GE Healthcare, consultant) wrote:
> hi, guys.
>  
> When I try to draw a circle, I  used vtkDiskSource, by setting the inner 
> redius and out radius, i can get a circle. but the bad thing is: the 
> circle is 3 dimensional,  if I do the flip operation (view the circle 
> from the other side), I only can see a black circle, since the normal 
> problem.
> then I tried the vtkregularPolygonSource to draw, I got a disk with the 
> same normal problem addressed above.
>  
> does anyone have a better solution?

When you're using vtkRegularPolygonSource make sure that you set the 
GeneratePolylineOn flag on.

hth

Goodwin




More information about the vtkusers mailing list