[vtkusers] possible to write actors to file?
    N. Yang 
    N.Yang at student.uva.nl
       
    Tue Apr 25 10:18:48 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