<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello VTkers,<br><br>let's say that I have this function<br><br><br>vtkRenderer *renderer = vtkRenderer::New();<br><br>void createScene(...) {<br><br>vtkActor *act = vtkActor::New();<br><br>renderer->AddActor();<br><br>}<br><br>I have the need of update an actor associated to a particular element of the scene. <br>The AddRenderer() adds the actor in the pipeline which I believe is an overall innner VTK datastructure. <br><br>So, I know that the GetActors() in the renderer returns the vtkActorsCollection. <br>If I want to change/update something in a pre-allocated actor shall I save the variable act and the nperform a research in that collection returned by GetActors()? <br><br>But saving the variable *act in a global data structure wouldn't it mean duplicating information (and so more memory usage) about that actor? and If I modify *act, am I actually modifing the same in the pipeline?<br><br>Thanks a lot for any advice you can give me!.<br><br>Giancarlo<br> <br /><hr />Troppe caselle di posta? <a href='http://www.windowslive.it/hotmail/GestisciAltriAccount.aspx' target='_new'>Gestiscile da Hotmail!</a></body>
</html>