<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 </head><body style="">
 
 
  <div>
   Hi Alex,
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Many thanks for the explanation.It worked for me.
  </div> 
  <blockquote style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite">
   On May 13, 2013 at 5:46 PM Alex Malyushytskyy &#60;alexmalvtk@gmail.com&#62; wrote:
   <br/>
   <br/> 
   <div dir="ltr"> 
    <div> 
     <div>
      From VTK documerntation: 
      <br/>&#34;vtkCylinderSource creates a polygonal cylinder centered at Center; The axis of the cylinder is aligned along the global y-axis.&#34;
      <br/>
      <br/>
     </div> So to achieve what you want translate output of vtkCylinderSource (which is polidata) height/2 along y-axis which will place beginning of the cylinder at origin, then rotate it about x (90 degrees ) to have axis of the cylinder aligned with&#160; Z axis.
     <br/> 
    </div> You may look at 
    <br/> 
    <pre><span></span>vtkTransformPolyDataFilter<span> and  </span>vtkTransform<span></span></pre> 
    <div>
     There some examples on wiki pages:
     <br/>
     <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/OrientedArrow">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/OrientedArrow</a>
     <br/> 
    </div> 
    <div>
     Alex
    </div> 
   </div> 
   <div class="gmail_extra">
    <br/>
    <br/> 
    <div class="gmail_quote">
     On Sun, May 12, 2013 at 10:42 PM, Arindam 
     <span>&#60;<a target="_blank" href="mailto:arindam@triassicsolutions.com">arindam@triassicsolutions.com</a>&#62;</span> wrote:
     <br/> 
     <blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"> 
      <div>
       Hi,
       <br/> 
       <br/> I am showing my 3D point with 3d glyphing with spare source. And i want to point the points by cylinder source.But by each translation the point is showing at the middle of cylinder source.But i want it to come at the tip and it should point vertically .Please help me for doing this.
       <br/> 
       <img id="part1.01060905.09070508@triassicsolutions.com" height="420" alt="" width="999" src="cid:part1.01060905.09070508@Open-Xchange" border="0"/>
      </div> 
      <br/>_______________________________________________
      <br/> Powered by 
      <a target="_blank" href="http://www.kitware.com">www.kitware.com</a>
      <br/> 
      <br/> Visit other Kitware open-source projects at 
      <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
      <br/> 
      <br/> Please keep messages on-topic and check the VTK FAQ at: 
      <a target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
      <br/> 
      <br/> Follow this link to subscribe/unsubscribe:
      <br/> 
      <a target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
      <br/> 
     </blockquote> 
    </div> 
   </div> 
  </blockquote> 
  <div>
   <br/>&#160;
  </div>
 
</body></html>