Re: [osg-users] Line tessellation with osgUtil::Tessellator

2016-07-13 Thread Glenn Waldron
Valerian, I recommend you look into the osgUtil::PlaneIntersector. For each segment of your line, construct a plane that is orthogonal to the grid. The PlaneIntersector will generate a Polyline containing all the points in that plane that intersect the grid. Glenn Waldron On Wed, Jul 13, 2016

Re: [osg-users] Line tessellation with osgUtil::Tessellator

2016-07-13 Thread Sebastian Messerschmidt
Hi Valerian Ok thanks. One more question then if I can. My grid is textured and has elevation, and my goal is to nicely draw the line on my textured grid and make it follow the elevation. Resampling is what came first to my mind. There is also the osgSim::OverlayNode which seems to be

Re: [osg-users] Line tessellation with osgUtil::Tessellator

2016-07-13 Thread Valerian Merkling
Ok thanks. One more question then if I can. My grid is textured and has elevation, and my goal is to nicely draw the line on my textured grid and make it follow the elevation. Resampling is what came first to my mind. There is also the osgSim::OverlayNode which seems to be useful too, but i

Re: [osg-users] Line tessellation with osgUtil::Tessellator

2016-07-13 Thread Robert Osfield
HI Valerian, osgUtil::Tessellation if for tessellation not resampling. What you are asking for is a line resampling with very specific rules. The OSG doesn't have any such tool so you'll need to write this yourself. Robert. On 13 July 2016 at 10:24, Valerian Merkling