[vtkusers] vtkCubeAxesActor problem in 5.8

Frable zemitis.janis at inbox.lv
Wed Sep 14 09:07:10 EDT 2011


Hey there!

Upgraded to Vtk 5.8 today and everything works as intended apart of the
axes. 
Kind of hard to put it into words but will try my best and screenshot added
for further reference.
It now wrongly adds 3 additional axes with origin on the x-axis facing
always to the right of the screen,independent of camera rotation.
Furthermore they create a projection of the shapes currently in the scene as
visible in the first screen-shot. It also has an impact on
vtkImplicitPlaneWidget2 and vtkSphereWidget2 as shown in the 2nd screen.
Disabling the axes gets rid of all the artifacts.

Any ideas what might be causing this?
All the best,
Frable

//implementation
 //AxisActor
    vtkCubeAxesActor* axes2 = vtkCubeAxesActor::New();
    axes2->SetBounds(pOutlineMap->GetBounds());
    axes2->SetCamera(pCamera);
    axes2->SetFlyModeToStaticTriad();
   
axes2->SetLabelScaling(false,-pImport->GetExponent(),-pImport->GetExponent(),-pImport->GetExponent());
    axes2->SetXLabelFormat("%2.2f");
    axes2->SetYLabelFormat("%2.2f");
    axes2->SetZLabelFormat("%2.2f");

 m_pRenderer->AddActor(axes2);


http://vtk.1045678.n5.nabble.com/file/n4802693/surfacerender.jpeg 

http://vtk.1045678.n5.nabble.com/file/n4802693/surfacewithsphere.jpeg 



--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkCubeAxesActor-problem-in-5-8-tp4802693p4802693.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list