// polydatamapper->SetInput(marchingcubes->GetOutput());
vtkactor->SetMapper(polydatamapper);
- polydatamapper->ImmediateModeRenderingOn();
+// polydatamapper->ImmediateModeRenderingOn();
}
//---------------------------------------------------------------------
vtkactor->GetProperty()->SetRepresentation( bbGetInputRepresentation() );
- if (bbGetInputRepresentation()==1)
+ if (bbGetInputRepresentation()==0)
{
vtkactor->GetProperty()->SetAmbient(1);
vtkactor->GetProperty()->SetDiffuse(1);
vtkactor->GetProperty()->SetSpecular(0);
- } else {
-printf("EED WARNNING! PolyDataToActor::DoProcess which is the default values of Ambient, Diffuse, Specular ? \n");
+printf("EED WARNNING! PolyDataToActor::DoProcess which is the default values of Ambient, Diffuse, Specular for points option? \n");
+ } else if (bbGetInputRepresentation()==1)
+ {
+ vtkactor->GetProperty()->SetAmbient(1);
+ vtkactor->GetProperty()->SetDiffuse(1);
+ vtkactor->GetProperty()->SetSpecular(0);
+ } else if (bbGetInputRepresentation()==2)
+ {
+ vtkactor->GetProperty()->SetAmbient(0);
+ vtkactor->GetProperty()->SetDiffuse(1);
+ vtkactor->GetProperty()->SetSpecular(0);
}
vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );