Vincent Bourdier <vincent.bourd...@gmail.com> writes:

> Hi Robert,
>
> Sorry if I was not clear : I'm just looking for a way to compute the
> smallest distance between a point and a geometry, not just a point to
> vertex distance, but also a point to edge or point to face (orthogonal
> projection).

That is a common problem in robotics and computational geometry. This
should get you started with a choice of algorithms that might suit you:
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.46.8005&rep=rep1&type=pdf

Cheers,
Philipp Moeller

> Due to the few days I have I think this won't be possible and safe...
>
> Thanks.
>
> Regards,
>    Vincent.
>
> Le 16/01/2012 10:26, Robert Osfield a écrit :
>> Hi Vincent,
>>
>> I'm not clear on what you are after, but I can say that there isn't
>> anything close to resembling what you are talking about in the OSG so
>> you'll need to roll your own visitor.
>>
>> Robert
>>
>> On 16 January 2012 08:36, Vincent Bourdier<vincent.bourd...@gmail.com>  
>> wrote:
>>> Hi all,
>>>
>>> Looking in the archives I didn't get any interesting answer so here is the
>>> question :
>>>
>>> Is there any way using OSG to compute the distance between a graph and a
>>> point ?
>>> (not just with the vertices but also with edges and the triangles)
>>>
>>> I could implement my own visitor to traverse all element (vertex, ege and
>>> face) but I'm looking for something more optimized or more easy to do in a
>>> few days if possible...
>>>
>>> Thanks.
>>>
>>> Regards,
>>>     Vincent.
>>>
>>> --
>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to