[vtkusers] Line on a surface

Dženan Zukić dzenanz at gmail.com
Tue May 22 08:48:13 EDT 2012


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 "straight" 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.

On Tue, May 22, 2012 at 10:27 AM, Jothybasu Selvaraj <jothybasu at gmail.com>wrote:

> If your surface is not flat, how can you create a straight line on a
> surface?
>
> Jothy
>
>
> On Tue, May 22, 2012 at 12:01 AM, francesc trull <francesctrull at gmail.com>wrote:
>
>> I need to create a line between two points on a surface. I know
>> vtkPolygonalSurfaceContourLineInterpolator finds the shortest path
>> between two points but that is not what I want. I just need a straight
>> line between the points but the line must be placed on the surface
>> (follow its contour). Any suggestions will be greatly appreciated.
>>
>> Francesc.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
> --
> Jothy
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120522/4b8a343b/attachment.htm>


More information about the vtkusers mailing list