<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Is the program actually entering the 'else' section?? Maybe tbnIniciar->Down is always true? If you're not sure then throw in a print statement to see if anything prints in that section.<br><br>The RemoveActor function is the correct one to use. I am using that in the program that I'm working on at the moment.<br><br>If that is not the problem, then it could be that something is still using the actor that you're trying to remove. That can be a problem when using the Delete function to remove it from memory, however I'm not sure if it can be a problem for RemoveActor as well.<br><br>Hope that helps a bit,<br>Cameron.<br></div><br><div></div><br><br><blockquote><hr id="EC_stopSpelling">From: rcpompeu@hotmail.com<br>To: vtkusers@public.kitware.com<br>Date: Mon, 5 May 2008 13:45:11 +0000<br>Subject: [vtkusers] Removing Actors<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Hello All,<br>
<br>
<div id="EC_result_box" dir="ltr">How do I remove an individual actor from the scene? My code does not work. Someone help me? Thanks.</div>
<br>
if (tbnIniciar->Down) {<br> VTK3->GetRenderer()->AddActor(outlineActor);<br> }<br>
<br>
else {<br> VTK3->GetRenderer()->RemoveActor(outlineActor);<br> VTK3->GetRenderer()->RemoveViewProp(outlineActor);<br> VTK3->GetRenderer()->Clear();<br> }<br>
<br>
VTK3->Invalidate();<br><br><br><hr>Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! <a href="http://video.msn.com/?mkt=pt-br" target="_blank">Confira já!</a>
</blockquote><br /><hr />at CarPoint.com.au <a href='http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT' target='_new'>It's simple! Sell your car for just $30 </a></body>
</html>