[vtkusers] possible to write actors to file?

N. Yang N.Yang at student.uva.nl
Wed Apr 26 07:21:36 EDT 2006


Dear all, 

i am wondering if i can use some writer object to write an actor that 
has set a certain mapper to a file(binary, ascii)?

example:

  public static void main (String[] args)
  {
vtkSphereSource sphere = new vtkSphereSource();
sphere.SetRadius(1.0);
sphere.SetThetaResolution(18);
sphere.SetPhiResolution(18);

vtkPolyDataMapper map = new vtkPolyDataMapper();
map.SetInput(sphere.GetOutput());

// actor coordinates geometry, properties, transformation
vtkActor aSphere = new vtkActor();
aSphere.SetMapper(map);
aSphere.GetProperty().SetColor(0,0,1); // color blue

--------some writer object is applicable here?

// a renderer for the data
vtkRenderer ren1 = new vtkRenderer();
ren1.AddActor(aSphere);
ren1.SetBackground(1,1,1); // background color white 

 
 




More information about the vtkusers mailing list