<div dir="ltr">Well we did fix a few bounding box issues in the Glyph3dMapper about a month ago. But, your artifacts don't look like what I would expect from those issues. If it only happens when you zoom in a lot, that is often a zbuffer/clipping range issue. Where the near clipping distance is too small causing farther objects to not have enough zbuffer resolution, but that is just a guess.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 10:35 AM, Andrea Gavana <span dir="ltr"><<a href="mailto:andrea.gavana@gmail.com" target="_blank">andrea.gavana@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ken & All,<div><br></div><div> thank you for your suggestions, vtkGlyph3DMapper worked beautifully in the end. I have only a couple of issues (which may or may not related to the VTK version I am using and the fact that I am using VTK through the Python bindings):</div><div><br></div><div>1. If I zoom in and out (with the mouse) in the render window I can see visual glitches for the spheres I am using (that's another vtkGlyph3DMapper, unrelated to the arrow ones) - see attached screenshot</div><div><br></div><div>2. If I do the following:</div><div><br></div><div><div><font face="monospace, monospace">>>> import vtk</font></div><div><font face="monospace, monospace">>>> vtk.vtkVersion().<wbr>GetVTKVersion()</font></div><div><font face="monospace, monospace">'7.0.0'</font></div></div><div><div><font face="monospace, monospace">>>> g = vtk.vtkGlyph3DMapper()</font></div><div><font face="monospace, monospace">>>> g.<wbr>SetOrientationModeToRotation()</font></div><div><font face="monospace, monospace">>>> g.GetOrientationModeAsString()</font></div><div><font face="monospace, monospace">'Invalid'</font></div></div><div><div><font face="monospace, monospace">>>> g.SetOrientationMode(vtk.<wbr>vtkGlyph3DMapper.ORIENTATION)</font></div><div><font face="monospace, monospace">>>> g.GetOrientationModeAsString()</font></div><div><font face="monospace, monospace">'Invalid'</font></div></div><div><div><font face="monospace, monospace">>>> g.<wbr>SetOrientationModeToDirection(<wbr>)</font></div><div><font face="monospace, monospace">>>> g.GetOrientationModeAsString()</font></div><div><font face="monospace, monospace">'Direction'</font></div></div><div><br></div><div><br></div><div>Notice the "Invalid" string printed out when I try to set the orientation mode to "ORIENTATION".</div><div><br></div><div>Not a big deal, I can use the DIRECTION thing as well, I just wanted to let you know...</div><div><br></div><div>Andrea.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 December 2016 at 16:52, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It can color/scale/orient/mask on a per glyph basis. It can even index into multiple glyph models on a per point basis. So you should be good. Just takes a while to wade through all the options as there is a lot in there.<div><br></div><div>Thanks</div><span class="m_-7317984801234421470HOEnZb"><font color="#888888"><div>Ken</div></font></span></div><div class="m_-7317984801234421470HOEnZb"><div class="m_-7317984801234421470h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 2, 2016 at 10:45 AM, Andrea Gavana <span dir="ltr"><<a href="mailto:andrea.gavana@gmail.com" target="_blank">andrea.gavana@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="white-space:pre-wrap">Hi Ken,<br><br> Thank you very much for your answer. I hadn't understood that vtkGlyph3D would create all the arrows in memory. <br><br>However, it may still be the only choice I have as I would like to be able to assign a different color (based on a scalar) to each arrow, and some arrows should point downward while others upwards. The size of the arrow will stay constant but the color I would like to be able to change it on an arrow-by arrow basis, and I don't know if this can be done using vtkGlyph3DMapper...<br><br>Of course, I would be more than happy to be proven wrong 😊.<br><br>Thank you again.<br><br>Andrea.<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 2 Dec 2016 at 16:30, Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.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" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Be aware Glyph3D is a filter and will actually generate all those arrows in memory. Glyph3DMapper is a mapper and uses OpenGL tricks to render the same arrow lots of times.<div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Both classes place a glyph at the location of each input point. The orientation is controlled by a different array in your point data ala the comments below:</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Thanks</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Ken</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> //@{</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> /**</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * Turn on/off orienting of input geometry.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * When turned on, the orientation array specified</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * using SetOrientationArray() will be used.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> */</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtkSetMacro(Orient, bool);</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtkGetMacro(Orient, bool);</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtkBooleanMacro(Orient, bool);</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> //@}</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> //@{</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> /**</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * Orientation mode indicates if the OrientationArray provides the direction</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * vector for the orientation or the rotations around each axes. Default is</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * DIRECTION</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> */</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtkSetClampMacro(OrientationMo<wbr>de, int, DIRECTION, ROTATION);</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtkGetMacro(OrientationMode, int);</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> void SetOrientationModeToDirection(<wbr>)</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> { this->SetOrientationMode(vtkGl<wbr>yph3DMapper::DIRECTION); }</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> void SetOrientationModeToRotation()</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> { this->SetOrientationMode(vtkGl<wbr>yph3DMapper::ROTATION); }</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> const char* GetOrientationModeAsString();</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> //@}</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> enum OrientationModes</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> {</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> DIRECTION=0,</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> ROTATION=1</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> };</div></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> /**</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * Tells the mapper to use an orientation array if Orient is true.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * An orientation array is a vtkDataArray with 3 components. The first</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * component is the angle of rotation along the X axis. The second</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * component is the angle of rotation along the Y axis. The third</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * component is the angle of rotation along the Z axis. Orientation is</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * specified in X,Y,Z order but the rotations are performed in Z,X an Y.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * This definition is compliant with SetOrientation method on vtkProp3D.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * By using vector or normal there is a degree of freedom or rotation</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * left (underconstrained). With the orientation array, there is no degree of</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * freedom left.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * This is convenience method. The same effect can be achieved by using</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * SetInputArrayToProcess(vtkGlyp<wbr>h3DMapper::ORIENTATION, 0, 0,</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> * vtkDataObject::FIELD_ASSOCIATI<wbr>ON_POINTS, orientationarrayname);</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> */</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> void SetOrientationArray(const char* orientationarrayname);</div></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div></div><div class="gmail_extra m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="gmail_quote m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div></div><div class="gmail_extra m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="gmail_quote m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">On Fri, Dec 2, 2016 at 10:18 AM, Andrea Gavana <span dir="ltr" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><<a href="mailto:andrea.gavana@gmail.com" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" target="_blank">andrea.gavana@gmail.com</a>></span> wrote:<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div></div><div class="gmail_extra m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="gmail_quote m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><blockquote class="gmail_quote m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Dear All,<div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> I am trying to combine a vtkArrowSource and vtkGlyph3D. I have been (naively) thinking that by specifying a polydata with two points (start and end) and assigning its points to the vtkGlyph3D I would obtain an arrow that starts at the start point and end at the end point.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">I have created a small, self-contained following Python script to demonstrate what I mean - I get 4 arrows, one at each point I define, instead of two arrows. What am I missing? Any suggestion is more than welcome.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Thank you in advance.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Andrea.</div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">import vtk</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">import numpy</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># First set of points - first arrow</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">points1 = numpy.array([[ 11271.915, 7538.686, 6245.661],</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> [ 11271.915, 7538.686, 5897.034]])</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Second set of points - second arrow</font></div></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">points2 = numpy.array([[ 10532.274, 9101.572, 6313.167],</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> [ 10532.274, 9101.572, 5964.539]])</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Create an arrow source with some attributes</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_source = vtk.vtkArrowSource()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_source.SetTipRadius(0.2)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_source.SetShaftRadius(0.<wbr>075)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Create the vtkGlyph3D</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_glyph = vtk.vtkGlyph3D()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_glyph.SetScaleModeToData<wbr>ScalingOff()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Usual mapper</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_mapper = vtk.vtkPolyDataMapper()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_mapper.SetInputConnectio<wbr>n(arrow_glyph.GetOutputPort())</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><span style="font-family:monospace,monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Usual actor</span></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><span style="font-family:monospace,monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_actor = vtk.vtkActor()</span><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_actor.SetMapper(arrow_ma<wbr>pper)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">append_poly_data = vtk.vtkAppendPolyData()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Loop through points1 and points2</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">for p in [points1, points2]:</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> arrow_poly_data = vtk.vtkPolyData()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtk_arrow_lines = vtk.vtkCellArray()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtk_arrow_lines.InsertNextCell<wbr>(2)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtk_arrow_lines.InsertCellPoin<wbr>t(0)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtk_arrow_lines.InsertCellPoin<wbr>t(1)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtk_arrow_points = vtk.vtkPoints()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> # Loop through the head and tail of a single arrow</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> for j in xrange(2):</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> vtk_arrow_points.InsertNextPoi<wbr>nt(p[j])</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> arrow_poly_data.SetPoints(vtk_<wbr>arrow_points)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> arrow_poly_data.SetLines(vtk_a<wbr>rrow_lines)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"> append_poly_data.AddInputData(<wbr>arrow_poly_data)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_glyph.SetInputConnection<wbr>(append_poly_data.GetOutputPor<wbr>t())</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_glyph.SetSourceConnectio<wbr>n(arrow_source.GetOutputPort()<wbr>)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_glyph.SetScaleFactor(100<wbr>)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">arrow_actor.GetProperty().SetC<wbr>olor(1, 1, 1)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># ------------------------------<wbr>------------------------------</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># Create the RenderWindow, Renderer and both Actors</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># ------------------------------<wbr>------------------------------</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">ren = vtk.vtkRenderer()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">renWin = vtk.vtkRenderWindow()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">renWin.AddRenderer(ren)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">iren = vtk.vtkRenderWindowInteractor(<wbr>)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">iren.SetRenderWindow(renWin)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"># add actors</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">ren.AddActor(arrow_actor)</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">ren.ResetCamera()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">iren.Start()</font></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div><font face="monospace, monospace" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></font></div></div>
<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></blockquote></div></div><div class="gmail_extra m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="gmail_quote m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><blockquote class="gmail_quote m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">______________________________<wbr>_________________<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
Powered by <a href="http://www.kitware.com" rel="noreferrer" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" target="_blank">www.kitware.com</a><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
Follow this link to subscribe/unsubscribe:<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">
<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></blockquote></div></div><div class="gmail_extra m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br clear="all" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><span class="HOEnZb"><font color="#888888"><span class="m_-7317984801234421470m_-4440275544535114384HOEnZb"><font color="#888888"><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div>-- <br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488m_-6726101654680824080gmail_signature m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg" data-smartmail="gmail_signature">Ken Martin PhD<div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Chairman & CFO<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Kitware Inc.<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">28 Corporate Drive<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">Clifton Park NY 12065<br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><br class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"></div><div class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg"><span style="font-size:10pt;font-family:Tahoma,sans-serif" class="m_-7317984801234421470m_-4440275544535114384m_-8558029903691372488gmail_msg">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</font></span></font></span></div></blockquote></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-7317984801234421470m_-4440275544535114384gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</font></span></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>