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
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
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
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
4 matches
Mail list logo