[vtkusers] Breaking vtk pipeline

Shyam Prakash ramakrishna.prakash at quest-global.com
Wed Nov 5 05:01:28 EST 2003


Hello,
            In my application, I read a .stl file and create the actors.
At this point I want to break the vtk pipeline. i.e. once actors are
created, I want them to be independent of the source(.stl file) from
which they were generated. Primary reason for this is, the .stl files
get overwritten during the processing. Due to pipe line execution these
changes are reflected in previously created actors. Is it ok if I follow
the following steps to break the pipeline
 
//read the stl file
vtkSTLReader reader = new vtkSTLReader();
reader.SetFileName("myfile.stl");
 
//get the output of the filter
vtkPolyData data = reader.GetOutput();
data.Update();
 
//create the actor
..
.
..
 
//now set the source of the data to null to break the pipeline
data.SetSource(null);
 
During the initial testing, I have found this to be working OK. Kindly
comment about my approach.
 
Thanks
Shyam
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031105/affb5129/attachment.htm>


More information about the vtkusers mailing list