[vtkusers] Re: draw a circle
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Tue Nov 14 16:10:53 EST 2006
Zhang, Kewu (GE Healthcare, consultant) wrote:
> tks.
>
> virtual void vtkRegularPolygonSource::GeneratePolylineOn ( )
> [virtual]
> "Control whether a polyline is produced. By default, GeneratePolyline is
> enabled"
>
> Also, the normal problem still exist
> Did I miss something?
> http://www.vtk.org/mailman/listinfo/vtkusers
You need to turn generating the polygon off...
package require vtk
package require vtkinteraction
vtkRegularPolygonSource circle
circle GeneratePolygonOff
circle SetNumberOfSides 360
vtkPolyDataMapper mapper
mapper SetInputConnection [circle GetOutputPort]
vtkActor actor
actor SetMapper mapper
vtkRenderer ren
ren AddActor actor
vtkRenderWindow renwin
renwin AddRenderer ren
vtkRenderWindowInteractor iren
iren SetRenderWindow renwin
iren AddObserver UserEvent {wm deiconify .vtkInteract}
iren Initialize
hth
Goodwin
More information about the vtkusers
mailing list