<div dir="ltr">Thanks for the suggestion!<div>I actually ended up implementing it without the `UnstructuredGridSource` and just a plain old `vtkUnstructuredGrid`:</div><div>```</div><div><div> mesh.SetCells(</div><div> numpy_support.numpy_to_vtk(</div><div> cell_types,</div><div> deep=1,</div><div> array_type=vtk.vtkUnsignedCharArray().GetDataType()</div><div> ),</div><div> numpy_support.numpy_to_vtk(</div><div> cell_offsets,</div><div> deep=1,</div><div> array_type=vtk.vtkIdTypeArray().GetDataType()</div><div> ),</div><div> cell_array</div><div> )</div></div><div>```<br><div><br></div><div>Cheers,</div><div>Nico</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 24, 2015 at 12:12 PM Favre Jean <<a href="mailto:jfavre@cscs.ch" target="_blank">jfavre@cscs.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Yes, it is possible. Here is an example, adapted from a bigger test case I have.<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px"><br>
<div><font size="2"><span style="font-size:10pt">
<div>-----------------<br>
Jean/CSCS<br>
<br>
</div>
</span></font></div>
</div>
</div>
</div>
</blockquote></div></div></div></div>