<font><font face="verdana,sans-serif">You probably need to determine a plane which passes through your 2 points, which you will then use to cut your surface and thus get a &quot;straight&quot; line. However plane is not defined by 2 points but rather 3, so you either pick a 3rd point at random or minimize length of this intersection with your surface.<br>

</font></font><br><div class="gmail_quote">On Tue, May 22, 2012 at 10:27 AM, Jothybasu Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">If your surface is not flat, how can you create a straight line on a surface?<br><br>Jothy<div><div class="h5"><br><br><div class="gmail_quote">On Tue, May 22, 2012 at 12:01 AM, francesc trull <span dir="ltr">&lt;<a href="mailto:francesctrull@gmail.com" target="_blank">francesctrull@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to create a line between two points on a surface. I know<br>
vtkPolygonalSurfaceContourLineInterpolator finds the shortest path<br>
between two points but that is not what I want. I just need a straight<br>
line between the points but the line must be placed on the surface<br>
(follow its contour). Any suggestions will be greatly appreciated.<br>
<br>
Francesc.<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>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Jothy<br></div><br>
</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>