[vtkusers] plane blending problem!!
jose manjon
jmanjon at fis.upv.es
Tue Nov 19 04:38:24 EST 2002
Hi there,
I am using a plane for representing cutting plane on a volume rendering program.
I have a problem . I want to blend the plane anmd for this I use SetOpacity(0.5).
but no way the code is this:
pmaxz=vtkPlaneSource::New();
pmaxz->SetNormal(-1,0,0);
pmaxz->SetOrigin(-ancho/2,-alto/2,fuentes/2);
pmaxz->SetPoint1(-ancho/2,alto/2,fuentes/2);
pmaxz->SetPoint2(ancho/2,-alto/2,fuentes/2);
pmaxzMapper=vtkPolyDataMapper::New();
pmaxzMapper->SetInput(pmaxz->GetOutput());
pmaxzActor=vtkActor::New();
pmaxzActor->SetMapper(pmaxzMapper);
pmaxzActor->GetProperty()->SetOpacity(0.5f);
pmaxzActor->GetProperty()->SetColor(0,0,1);
this->Renderer->AddActor(pmaxzActor);
any idea???
thanks in advance,
jose
More information about the vtkusers
mailing list