<div dir="ltr">If you build VTK, with testing or with examples, the data files end up in the build directory. It's a binary file ~2.5Mb, or I'd attach it.<div>The example uses 

<span style="color:rgb(55,71,79);font-family:"Roboto Mono","Courier New",Courier,monospace;font-size:13.6px;white-space:pre;background-color:rgba(240,240,240,0.8);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkStructuredPointsReader</span> to read the file, then 

<span style="color:rgb(55,71,79);font-family:"Roboto Mono","Courier New",Courier,monospace;font-size:13.6px;white-space:pre;background-color:rgba(240,240,240,0.8);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkPolyDataMapper</span> , tells you carotid is probably a PolyData, so you can look for examples of constructing that. The example of exchanging data with Numpy arrays might be helpful.</div><div>HTH,</div><div>Aron<br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 6, 2018 at 4:10 AM J. <<a href="mailto:babybishops@gmail.com">babybishops@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'd like to draw a Hedgehog plot in Python. I had a look at this example:</div><div><br></div><div><a href="https://lorensen.github.io/VTKExamples/site/Python/Visualization/ComplexV/" target="_blank">https://lorensen.github.io/VTKExamples/site/Python/Visualization/ComplexV/</a></div><div><br></div><div>But unfortunately the data for the plot there is just read from a file, "carotid.vtk" (a file which, by the way, I can't find anywhere on the Internet - maybe a download a link could be added to the examples page?). Thus it's quite opaque exactly how this data needs to be presented. I've been trying to guess my way to success by looking at some C code I found, but I'm not getting any joy.</div><div><br></div><div>Say I have a 2-dimensional python array of python 3-tuples representing the values of a vector field at each point of a regular 3d grid. What steps do I take to plot that as a hedgehog?<br></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>