I'd like to just display the polygons in their specified colour with no shading, is this possible? I've tried setting each of ambient, specular, diffuse etc. to 1 and the others to 0 with no luck.
To disable shading you really have to set lightning off.
To do so specify actor.GetProperty().LightingOff()
on the respective vtkActor. See eg http://www.vtk.org/doc/nightly/html/classvtkProperty.html
Based on the vtk Pyramid the effect can be seen in the following example
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.