[vtkusers] Extracted cross-section from vtkCutter cannot be displayed

ochampao ochampao at hotmail.com
Wed Jul 11 09:32:34 EDT 2018


After lots of searching in VTK users mailing list, I came across this post:

http://vtk.1045678.n5.nabble.com/black-contour-instead-of-colors-after-vtkcutter-td5738068.html
<http://vtk.1045678.n5.nabble.com/black-contour-instead-of-colors-after-vtkcutter-td5738068.html>  

which helped me solve the issues. Essentially, the actors were placed on the
view but they were not visible. To mitigate this I have added the following
two lines of code:

cutterActor->GetProperty()->LightingOff();
cutterActor->GetProperty()->SetAmbient(1.0);

This solved the problem.

Thanks,
P.





--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list