I have a reader which outputs a Multi-block Dataset containing a polygonal mesh of vertices in one block. I am trying to add another block to contain a 2D image on a plane. I am reading in the image as such:<br><br>[code]<br>
vtkSmartPointer<vtkImageReader2Factory> imageFactory =<br> vtkSmartPointer<vtkImageReader2Factory>::New();<br> vtkSmartPointer<vtkImageReader2> reader =<br> imageFactory->CreateImageReader2(filename);<br>
reader->SetFileName(filename);<br> reader->Update();<br><br> vtkSmartPointer<vtkTextureMapToPlane> texturePlane =<br> vtkSmartPointer<vtkTextureMapToPlane>::New();<br> texturePlane->SetInput(reader->GetOutput());<br>
texturePlane->SetOrigin(0,0,0);<br> texturePlane->SetPoint1(1, 0, 0);<br> texturePlane->SetPoint2(0, 1, 0);<br><br> mb->SetBlock(1, texturePlane->GetOutput());<br>[\code]<br><br>Under the Information Tab in the Object Inspector, I see the Image (Uniform Rectilinear Grid) under the Multi-block DataSet. It has no cells or points. The image does not show up in the 3d view either.<br>
<br>How can I get the image to show up?<br><br>Thanks,<br>Brian Panneton<br>