[vtkusers] what's the difference between actor 's position and sphere 's center ?
    fearhope 
    fearhope at gmail.com
       
    Thu Jun  7 04:58:11 EDT 2012
    
    
  
For further information,
I'm adding my codes. 
	// Get the actor pointer	
	vtkLODActor* actor = vtkLODActor::SafeDownCast (am_it->second); 
	vtkAlgorithm *algo =
actor->GetMapper()->GetInputConnection(0,0)->GetProducer();
        // Or, vtkAlgorithm *algo =
actor->GetMapper()->GetInput()->GetProducerPort()->GetProducer();
	vtkSphereSource *src = vtkSphereSource::SafeDownCast(algo);
	src->SetCenter((double)center.x, (double)center.y, (double)center.z);
	src->SetRadius(radius);
	src->Update();
	actor->GetProperty ()->SetColor (r, g, b);
	
	actor->GetProperty ()->BackfaceCullingOn ();
	actor->Modified(); 
--
View this message in context: http://vtk.1045678.n5.nabble.com/what-s-the-difference-between-actor-s-position-and-sphere-s-center-tp5713553p5713642.html
Sent from the VTK - Users mailing list archive at Nabble.com.
    
    
More information about the vtkusers
mailing list