Re: [osg-users] Distance point to geometry

2012-01-16 Thread Vincent Bourdier
Hi Robert, Thanks for you help. I think I can do something not so bad with that. Regards, Vincent. Le 16/01/2012 20:04, Robert Osfield a écrit : Hi Vincent, On 16 January 2012 14:55, Vincent Bourdier wrote: Thanks for the idea I'll will start with that. How could I implement the test ag

Re: [osg-users] Distance point to geometry

2012-01-16 Thread Vincent Bourdier
Hi Robert, Le 16/01/2012 10:53, Robert Osfield a écrit : You'd implement a NearestGeometryIntersector that holds a point that you test your osg::Geometry against, using a osg::TriangleFunctor like the LineSegmentIntersector would allow you to simply the work down to just a test of the point agai

Re: [osg-users] Distance point to geometry

2012-01-16 Thread Philipp Moeller
Vincent Bourdier 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

Re: [osg-users] Distance point to geometry

2012-01-16 Thread Vincent Bourdier
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). Due to the few days I have I think this won't be possible a

Re: [osg-users] Distance point to geometry

2012-01-16 Thread Robert Osfield
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 wrote: > Hi all, > > Looking in the archives I didn't get

[osg-users] Distance point to geometry

2012-01-16 Thread Vincent Bourdier
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