[osg-users] TerrainProfile of a Region?
Anthony Arnold
anthony.arnold at uqconnect.edu.au
Mon Feb 6 16:41:39 PST 2017
Hi,
I'm trying to get the min/max elevation of an osgEarth MapNode for a given region, by specifying the NE, SE, NW, SW corners.
Looking at osgEarthUtil::TerrainProfileCalculator I can see that it's using the ElevationSlice class, which uses a PlaneIntersector to get all of the terrain points along a plane.
I figured I could do a similar thing with a PolytopeIntersector to get all terrain points within the Polytope. This class isn't really documented comprehensively though.
Does anyone have any advice on how I can achieve this? My end goal is to just define a region and get the min/max elevation in the region.
Thank you!
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70119#70119
More information about the osg-users
mailing list