DtOsgEarthBoundary.
This class is the same as osgEarth::BoundaryUtil. It's used to generate a boundary of a osg::Node.
|
| static osg::Vec3dArray * | hullPresortPoints (osg::Vec3dArray &points) |
| |
| static float | isLeft (osg::Vec3d P0, osg::Vec3d P1, osg::Vec3d P2) |
| |
| makVrv::DtOsgEarthBoundary::DtOsgEarthBoundary |
( |
| ) |
|
Copy Constructor not implemented – Copy not allowed.
| static void makVrv::DtOsgEarthBoundary::setTolerance |
( |
double |
meters | ) |
|
|
static |
Sets the tolerance when combining close verts. Default = 0.01.
| static double makVrv::DtOsgEarthBoundary::getTolerance |
( |
| ) |
|
|
inlinestatic |
Gets the tolerance when combining close verts. Default = 0.01.
| static osg::Vec3dArray* makVrv::DtOsgEarthBoundary::getBoundary |
( |
osg::Node * |
modelNode, |
|
|
bool |
geocentric = true, |
|
|
bool |
convexHull = false |
|
) |
| |
|
static |
Use the vertices of the given node to calculate a boundary via the findHull() method.
| static osg::Vec3dArray* makVrv::DtOsgEarthBoundary::findHull |
( |
osg::Vec3dArray & |
points | ) |
|
|
static |
Finds the convex hull for the given points using the Andrew's monotone chain algorithm. Returns an ordered set of points defining the hull.
| static osg::Vec3dArray* makVrv::DtOsgEarthBoundary::findMeshBoundary |
( |
osg::Node * |
modelNode, |
|
|
bool |
geocentric = true |
|
) |
| |
|
static |
Finds the boundary of the mesh.
- Parameters
-
| modelNode | The node of the model. |
| geocentric | If the model is in geocentric coordinate. |
| static osg::Vec3dArray* makVrv::DtOsgEarthBoundary::hullPresortPoints |
( |
osg::Vec3dArray & |
points | ) |
|
|
staticprotected |
Returns an array containing the points sorted first by x and then by y.
| static float makVrv::DtOsgEarthBoundary::isLeft |
( |
osg::Vec3d |
P0, |
|
|
osg::Vec3d |
P1, |
|
|
osg::Vec3d |
P2 |
|
) |
| |
|
inlinestaticprotected |
Tests if a point is Left|On|Right of an infinite line Returns: >0 for P2 left of the line through P0 and P1 0 for P2 on the line <0 for P2 right of the line.
Implementation based on method from softSurfer (www.softsurfer.com)
Assignment Operator not implemented – Copy not allowed.
| double makVrv::DtOsgEarthBoundary::myTolerance |
|
staticprotected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-1-branch/include/vrvOsgEarth/DtOsgEarthBoundary.h