[vtkusers] PolyData actor is invisible after applying scale(1, 1, -1)

zlf jxdw_zlf at yahoo.com.cn
Mon Sep 3 10:17:03 EDT 2012


Dear David,

Thank you for your response. But I still cannot see anything. My code is 

vtkCubeSource cubeSource = vtkCubeSource->New();
cubeSource->SetCenter(5,5,5);
cubeSource->SetXLength(10);
cubeSource->SetYLength(10);
cubeSource->SetZLength(10);

vtkPolyDataMapper mapper = vtkPolyDataMapper::New();
mapper->SetInput(cubeSource->GetOutput());

vtkActor cubeActor = vtkActor::New();
cubeActor->SetMapper(mapper);

render->AddActor(cubeActor);

vtkTransform transform = vtkTransform::New();
transform->Scale(1,1,-1);
cubeActor->GetProertry()->BackfaceCullingOff();
cubeAcotr->SetUserTransform(transform);

renderer->ResetCameraClippingRange();
renderer->ResetCamera();
renwin->Render();

Regards,

zlf



--
View this message in context: http://vtk.1045678.n5.nabble.com/PolyData-actor-is-invisible-after-applying-scale-1-1-1-tp5715785p5715801.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list