Hello,<div><br></div><div>Sorry to bother but I have a problem for which I cannot yet fine the answer to online.</div><div>How do I apply a 3DGlyph to an unstructured grid? I can easily find examples of applying it to like spheresource, or conesource objects, but not to unstructuredgrids. When I try to get the outputport of my unstructuredgrid, an erros results saying &quot;Attribute error: GetOutputPort&quot;.<br>

</div><div><br></div><div>     aMeshGrid = vtk.vtkUnstructuredGrid()</div><div>     aMeshGrid.Allocate(2, 180)</div><div>  #cell_type and element_ID_list initiated</div><div><div>     aMeshGrid.InsertNextCell(cell_type, element_ID_list)<span class="Apple-tab-span" style="white-space:pre">        </span>    </div>

<div>  #meshPoints created. it is of class vtkPoints</div><div>     aMeshGrid.SetPoints(meshPoints)</div></div><div><div>     glyph = vtk.vtkGlyph3D()</div><div>     glyph.SetInputConnection(aMeshGrid.GetOutputPort())</div>

<div><br></div><div>I tried using GetOutput instead of GetOutputPort, but the same error results. Is it because it simply does not work with unstructured grids? Is there another way?</div><div>Sorry I didn&#39;t include all my code, because it gets long and tedious. But if you would like to see my code, by all means, let me know.</div>

<div><br></div><div>Regards</div>-- <br>Helvin <br><br>&quot;Though the world may promise me more, I&#39;m just made to be filled with the Lord.&quot;<br>
</div>