<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>On vtkPolyDataMapper try ScalarVisibilityOff()
method. My guess is surface extraction is assigning cell scalars and mapper is
by default in ScalarVisibilityOn mode.</FONT></DIV>
<DIV><FONT face=Arial size=2>Vidyadhar</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ivan.gm.itk@gmail.com href="mailto:ivan.gm.itk@gmail.com">ivan gm</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 03, 2008 2:58
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Color Problems</DIV>
<DIV><BR></DIV>Hello vtk users,<BR><BR>I'm representing a bone in 3D generated
with the vtkContourFilter. The following code shows a red bone and a white
light illuminating it.My problem is that I don't know how to configure the
actor properties for getting a grey bone iluminated by a white
light.<BR><BR> vtkContourFilter
*contourFilter =
vtkContourFilter::New();<BR>
vtkSmoothPolyDataFilter *smoothFilter =
vtkSmoothPolyDataFilter::New();<BR>
vtkPolyDataNormals *polyDataNormals =
vtkPolyDataNormals::New();<BR><BR>
contourFilter->SetInput(islandRemoval->GetOutput());<BR>
contourFilter->Update();<BR>
smoothFilter->SetInputConnection(contourFilter->GetOutputPort());<BR>
smoothFilter->SetNumberOfIterations(30);<BR>
smoothFilter->SetRelaxationFactor(1.0);<BR>
smoothFilter->Update();<BR>
polyDataNormals->SetInputConnection(smoothFilter->GetOutputPort());<BR>
polyDataNormals->Update();<BR><BR>
this->BoneMapper->SetInput(this->polyDataNormals->getOutput());<BR>
this->BoneMapper->ImmediateModeRenderingOn();<BR>
this->BoneMapper->Update();<BR>
this->BoneActor->SetMapper(this->BoneMapper);<BR>
this->BoneActor->GetProperty()->SetColor(1.0, 1.0,
1.0);<BR>
this->BoneActor->GetProperty()->SetAmbientColor(1.0, 1.0,
1.0);<BR>
this->BoneActor->GetProperty()->SetSpecularColor(1.0, 1.0,
1.0);<BR>
this->BoneActor->GetProperty()->SetDiffuse(0.0);<BR>
this->BoneActor->GetProperty()->SetSpecular(10.0);<BR>
this->BoneActor->GetProperty()->SetSpecularPower(5);<BR><BR>Can
anybody helps me?<BR><BR><BR>Thanks a lot.<BR><BR>Iván García Martínez -
Spain.<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>This is the private
VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>