osgEarth 2.1.1
|
Functions | |
void | getEdge (const Patch *patch, Vec3 &p1, Vec3 &p2, int edgeNo) |
Variables | |
int | edgeCoords [4][2][2] |
void seamless::anonymous_namespace{Patch.cpp}::getEdge | ( | const Patch * | patch, |
Vec3 & | p1, | ||
Vec3 & | p2, | ||
int | edgeNo | ||
) | [inline] |
Definition at line 193 of file Patch.cpp.
{ PatchSet* ps = patch->getPatchSet(); int psRes = ps->getResolution(); // patch dimension - 1 int coords[2][2]; for (int j = 0; j < 2; ++j) for (int i = 0; i < 2; ++i) coords[j][i] = edgeCoords[edgeNo][j][i] * psRes; Vec3Array* verts = static_cast<Vec3Array*>(patch->getData()->vertexData.array.get()); p1 = (*verts)[ps->makeIndex(coords[0][0], coords[0][1])]; p2 = (*verts)[ps->makeIndex(coords[1][0], coords[1][1])]; }
int seamless::anonymous_namespace{Patch.cpp}::edgeCoords[4][2][2] |