<div>On Tue, Feb 2, 2010 at 2:09 PM, Georg Ziegler <span dir="ltr"><<a href="mailto:gziegler@mail.tuwien.ac.at">gziegler@mail.tuwien.ac.at</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
<br>
I am not very experienced with the workings of the new pipeline but I have managed to write a custom source similar to the one in this example:<br>
<a href="http://www.vtk.org/Wiki/VTK_Examples_vtkImageAlgorithm_Source" target="_blank">http://www.vtk.org/Wiki/VTK_Examples_vtkImageAlgorithm_Source</a><br>
<br>
Then I have built a pipeline like so:<br>
<br>
vtkImageMedian3D->SetInputConnection(vtkMyCustomSource->GetOutputPort());<br>
vtkVolumeRayCastMapper->SetInputConnection(vtkImageMedian3D->GetOutputPort());<br>
<br>
Unfortunately, this setup does not produce a volume as expected.<br>
If I connect my custom source directly to the mapper I do get a result.<br>
vtkVolumeRayCastMapper->SetInputConnection(vtkMyCustomSource->GetOutputPort());<br>
<br>
Can you point me to where the problem might be?<br>
Do I have to implement another method in my custom source besides RequestData()?<br>
<br>
Regards,<br>
Georg<br><br></blockquote><div><br></div><div>Maybe you're having the same issue I was having a few days ago:</div><div> </div><div>Bill found that the solution was to add these lines at the end of RequestData():</div>
<div><br></div><div> output->ShallowCopy(image);</div><div> output->SetExtent(image->GetExtent());</div><div> output->SetUpdateExtent(image->GetUpdateExtent());</div><div> output->SetWholeExtent(image->GetWholeExtent());</div>
<div><br></div><div>I just added them to the example page that you were referring to.</div><div><br></div><div>I'm not exactly sure why it is necessary, but it seemed to fix my issue.</div><div><br></div><div>Let me know if it works for you.</div>
<div><br></div>Thanks,<br><br><div>David </div></div>