[vtkusers] Trouble coloring the vtkActors (always turns out red)

lars-friedrich lars-friedrich at gmx.net
Wed May 20 02:33:11 EDT 2009


Hi,

try

mapper->SetScalarVisibility(false);

cheers,
lars



Raashid Baig-2 wrote:
> 
> I am having trouble setting vtkActor's color.
> I can't figure out whats wrong with my program as the actor always turns
> out red no matter what color I set it to.
> I am using vtk5.4.0 on a linux system.
> Can someone please take a look at the attached files and explain what am I
> doing wrong ?
> Thanks in advance.
> Raashid
> PROJECT (project2)
> 
> FIND_PACKAGE(VTK REQUIRED)
> IF(NOT VTK_USE_RENDERING)
>   MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires
> VTK_USE_RENDERING.")
> ENDIF(NOT VTK_USE_RENDERING)
> INCLUDE(${VTK_USE_FILE})
> 
> ADD_EXECUTABLE(profile profile.cxx)
> TARGET_LINK_LIBRARIES(profile vtkRendering)
> 
>  
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://www.nabble.com/Trouble-coloring-the-vtkActors-%28always-turns-out-red%29-tp23629163p23629803.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list