[vtkusers] Erase surfaces

Christian Poecher poecher at icom-consulting.de
Mon Aug 26 06:10:16 EDT 2002


Javier Maicas Sebastian wrote:
> I am creating surfaces with marching cubes and I want to erase some of the
> created surfaces. I am trying with drawing again the surface I do not want
> but with the background color, but it does not work because the color of
> the surface is not really the color of the background. The code I use is:
> 
> ...
> skin->GetProperty()->SetDiffuseColor(1, 1, 1);
> ...
> outline->GetProperty()->SetColor(1,1,1);

skin->VisibilityOff();
outline->VisibilityOff();
should work and also save you rendering time.

cheers, chris

-- 
________________________________________________________________________
Christian Poecher                      mailto:poecher at icom-consulting.de
ICOM GmbH   					Phone: +49 241 9367-1554
Schloss-Rahe-Str. 15, 52072 Aachen, Germany     Fax  : +49 241 9367-1589
________________________________________________________________________




More information about the vtkusers mailing list