<div dir="ltr"><div><div><div>Please reply to mailing list.<br></div>It will help first of all you,<br><br>"Tbe object can
be any thing like vtkpolydata or vtkarrowsorce or
vtkcylindersource"<br><br></div>All sources you mention produce vtkPolydata, so<br></div>have you looked at <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData</a><div>
<div>I've suggested you to check?</div><br><div>I believe it covers all technical questions how to apply transformation in vtk,<br></div><div>Everything else is trivial math. It is easy to determine how to find distance between 2 points and angle between 2 vectors, which you would need to do to define transformation for the polydata to orient it in normal direction and place at point location.<br>
<br></div><div>Alex</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 9:41 PM, Arindam <span dir="ltr"><<a href="mailto:arindam@triassicsolutions.com" target="_blank">arindam@triassicsolutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Thanks for your reply. Tbe object can
be any thing like vtkpolydata or vtkarrowsorce or
vtkcylindersource.For reference i am attaching 3 image with this
email.<div><div class="h5"><br>
<br>
On 4/26/2013 6:17 AM, Alex Malyushytskyy wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Correctly asked question is 50% of the answer.<br>
</div>
Your question does not provide details on which data types
your are working with.<br>
</div>
There is no such class in vtk as ArrowObject.<br>
<br>
</div>
If you work with vtkPolyData which represent your arrow, you
need to define transformation which will adjust orientation
of your polydata and translate it to desired location.<br>
<br>
</div>
Useful example might be:<br>
<div><br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData</a><br>
<br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
On Tue, Apr 23, 2013 at 10:17 PM, Arindam <span dir="ltr"><<a href="mailto:arindam@triassicsolutions.com" target="_blank">arindam@triassicsolutions.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <br>
Hi,<br>
<br>
I have point and a ArrowObject.I need to move the object
to the point on a 3D surface and with the direction of
the point normal.Means the arrow should point to the point
at the direction of the normal of the given point.How can
i achieve that?Any help will be appreciated.<span><font color="#888888"><br>
<br>
<br>
-- <br>
Thanks.<br>
<font color="#262626"><font><font face="calibri,sans
serif,arial">Arindam<br>
<br>
</font></font></font>
<div><font color="#262626" face="calibri,sans
serif,arial">
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" valign="top" width="230"><br>
</td>
</tr>
<tr>
<td valign="top" width="100%"><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
</tbody>
</table>
</div>
</font></div>
</font></span></div>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><div>-- <br>
<br>
<font color="#262626" face="calibri,sans serif,arial">
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" valign="top" width="230"><span style="line-height:100%"><font color="#262626" face="calibri,sans serif,arial">Regards,<br>
<font color="#5C83B4"><b>ARINDAM SAHA<br>
Software Engineer</b></font><br>
Triassic Solutions Pvt. Ltd.<br>
<a href="tel:%28%2B91%29%20471%202700050" value="+914712700050" target="_blank">(+91) 471 2700050</a> (Office)<br>
9746145220 (Mobile)</font></span></td>
</tr>
<tr>
<td valign="top" width="100%"><a href="http://www.triassicsolutions.com" target="_blank"><img border="0"></a></td>
</tr>
<tr>
<td><span style="line-height:75%"><font color="#1F497D" face="calibri,sans serif,arial"><br>
Disclaimer: This e-mail contains confidential
information intended solely for the intended
recipient. If you are not the intended recipient,
please notify the sender by e-mail and delete this
email permanently from your records. Do not copy
or distribute this e-mail and any such actions are
unlawful. Except where this email is sent in the
usual course of business, the views expressed in
this email are those of the sender. Triassic
Solutions Pvt. Ltd. accepts no responsibility for
any indirect damage or loss suffered by reason of
inaccuracy or incorrectness of the information in
this email.</font></span><br>
<span><font color="#33CC00" face="calibri,sans
serif,arial">+ Please consider our
environment before printing this e-mail.</font></span></td>
</tr>
</tbody>
</table>
</div>
</font></div>
</font></span></div>
</blockquote></div><br></div>