Can you post your new pipeline? Are you using 5.0 or CVS?<br><br>-Berk<br><br><div><span class="gmail_quote">On 5/30/06, <b class="gmail_sendername">Bill McGrory</b> <<a href="mailto:mcgrory@aerosft.com">mcgrory@aerosft.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Responding to my own e-mail.<br>I implemented a vtkMultiGroupDataGroupFilter::RequestDataObject, and
<br>filled the the vtkMultiGroupDataSet with vtkDataSet's that were obtained<br>from the input connections to the filter.<br><br>this got me past the error listed below, but now I fail, because<br>ExecuteDataForBlock doesn't use my created vtkMultiBlockDataSet from the
<br>request.<br><br>In trying to understand this filter, I compared it to other<br>vtkMultiGroupDataSetAlgorithm's and I noticed that<br>vtkMultiGroupDataExtractDataSets and vtkMultiGroupDataExtractGroup both<br>implement ::RequestInformation and fill a vtkMultiGroupDataInformation
<br>object with information about the children. So I tried to implement a<br>similar method in vtkMultiGroupDataGroupFilter, and that didn't seem to<br>have any effect.<br><br>So, next, I tried to change my pipeline. I filled a vtkMultiGroupDataSet
<br>with statically created vtkStructuredGrids. I then fed this<br>vtkMultiGroupDataSet into a vtkMultiGroupDataExtractGroup and fed that<br>filter as input to my pipeline below. When I do this, I get the same<br>error as listed below.
<br><br>So, it appears to me that none of the vtkMultiGroupDataSetAlgorithms<br>work correctly with vtkMultiGroupDataGeometryFilter. Is there truth to<br>this?<br><br>On Sat, 2006-05-27 at 16:09 -0400, Bill McGrory wrote:
<br>> Trying to get new pipeline set up for a multiblock dataset.<br>> Following the suggestions of Berk, from previous thread, I'm now using a<br>> vtkStructuredGridAlgorithm as a source to create a vtkStructuredGrid
<br>><br>><br>> I'm feeding the output ports of the algorithm into a<br>> vtkMultiGroupDataGroupFilter in order to create a vtkMultiGroupData<br>> which contains only vtkStructuredGrid's<br>><br>> my pipeline is below.
<br>><br>> The problem as this is implemented is this:<br>><br>> When vtkCompositeDataPipeline::ExecuteDataObjectForBlock is called,<br>> vtkMultiGroupDataGroupFilter::ExecuteData has yet to be called.<br>> However, that is where the vtkMultiGroupDataSet has the children loaded.
<br>> This means that there are no datasets in the multigroupdataset, so the<br>> request for a block data object fails, and a simple polydata object is<br>> passed down the pipeline. At this point, the vtkStructuredGridOutline
<br>> filter fails, because, it does a check to make sure the input port is<br>> correctly set to vtkStructuredGrid, and it's set to the dummy<br>> vtkPolyData.<br>><br>> Is this a bug, or am I still trying to do something that's not
<br>> supported?<br>><br>> Regards, Bill<br>><br>><br>><br>> MyStructuredGridAlgorithm *sgridsrc0 = MyStructuredGridAlgorithm::New();<br>> MyStructuredGridAlgorithm *sgridsrc1 = MyStructuredGridAlgorithm::New();
<br>><br>> sgridsrc0->myoffset = 0.;<br>> sgridsrc1->myoffset = 3.;<br>><br>> vtkMultiGroupDataGroupFilter *mbFilter =<br>> vtkMultiGroupDataGroupFilter::New();<br>><br>> mbFilter->SetInputConnection(0,sgridsrc0->GetOutputPort(0));
<br>> mbFilter->AddInputConnection(0,sgridsrc1->GetOutputPort(0));<br>><br>> vtkStructuredGridOutlineFilter *outlineFilter =<br>> vtkStructuredGridOutlineFilter::New();<br>><br>> outlineFilter->SetInputConnection(0, mbFilter->GetOutputPort(0));
<br>><br>> vtkMultiGroupDataGeometryFilter *mgdgFilter =<br>> vtkMultiGroupDataGeometryFilter::New();<br>> mgdgFilter->SetInputConnection(0, outlineFilter->GetOutputPort(0));<br>><br>> vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
<br>> mapper->SetInputConnection(0, mgdgFilter->GetOutputPort(0));<br>><br>><br>><br>--<br>Dr. William D. McGrory    AeroSoft, Inc.<br><a href="mailto:mcgrory@aerosft.com">mcgrory@aerosft.com</a>       Suite 1275
<br>(540) 557-1904            1872 Pratt Drive<br>(540) 557-1919 (FAX)      Blacksburg, VA 24060<br><br>_______________________________________________<br>vtk-developers mailing list<br><a href="mailto:vtk-developers@vtk.org">
vtk-developers@vtk.org</a><br><a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br></blockquote></div><br>