13 #include <osg/BoundingSphere>
35 const double worldWidth, std::vector<DtTerrainPagingGeometryPtr>& output);
105 return max -
min > width / 2;
109 :
min(std::numeric_limits<
double>::infinity())
110 ,
max(-std::numeric_limits<
double>::infinity())
bool shapeIntersectsAABB(const DtLocalVertexList &shape, const DtVector &lower, const DtVector &upper)
const double & x() const
Definition: point.h:188
void convertToOsgEarthCoordSys(DtPoint &p, CS_Type cstype)
convert to coordinate system used by osgEarth tiles
DtBoost::shared_ptr< DtTerrainPagingGeometry > DtTerrainPagingGeometryPtr
Definition: terrainPagingGeometry.h:46
DtVrfChordIntersectionRecord represents a list of DtChordIntersectRecords.
Definition: vrfChordIntersectRecordList.h:31
void update(const DtPoint &p)
update min and max values
Definition: terrainUtil.h:86
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
bool doubleEqual(double d1, double d2)
Definition: coordSystem.h:54
DtSphere boundingSphere2DtSphere(const osg::BoundingSphere &boundingSphere)
code for checking if a geometry wraps around the borders of the world map
Definition: terrainUtil.h:81
void unwrap(double width, DtLocalVertexList &list, std::vector< DtTerrainPagingGeometryPtr > &output)
unwrap moves points lower one world width if they are on the upper half side of the world this is so ...
DtVrfChordIntersectionRecord * insertRecordAlongChord(const DtVrfChordIntersectionRecord &record, DtVrfChordIntersectRecordList &intList)
inserts points inter intersection record list checks each point against the one before and after and ...
bool wrapsAround(double width) const
check is points analyzed so far indicate shape wraps around the world
Definition: terrainUtil.h:102
Definition: vrfChordIntersectionRecord.h:19
CS_Type
Definition: coordSystem.h:35
void convertFromOsgEarthCoordSys(DtPoint &p, CS_Type cstype)
convert from coordinate system used by osgEarth tiles
double min
Definition: terrainUtil.h:83
void convertGeometry(const DtTerrainPagingGeometryPtr &geometry, const Coordinate_System *CS, const double worldWidth, std::vector< DtTerrainPagingGeometryPtr > &output)
Convert geometry to internal coordinate system.
bool extentIntersectsAABB(const DtVector &min1, const DtVector &max1, const DtVector &min2, const DtVector &max2)
TODO ALL functions below should be inline.
class DtLocalVertexList:
Definition: localVertexList.h:20
bool pointIntersectsAABB(const DtVector &p, const DtVector &lower, const DtVector &upper)
MinMaxInfo()
Definition: terrainUtil.h:108
DtExtent sphereExtent(const DtSphere &sphere)
bool boundariesOverlap(double min1, double max1, double min2, double max2)
double max
Definition: terrainUtil.h:83