41 bool operator < ( const DtSphericalVertex<T>& rhs )
const;
142 #include "DtSphericalCoordinateUtils.inl"
DtSphericalVertex< T > myBottomRight
Definition: DtSphericalCoordinateUtils.h:116
T myAzimuth
The vertex's representative azimuth.
Definition: DtSphericalCoordinateUtils.h:52
DtSphericalVertex< T > myBottomLeft
Definition: DtSphericalCoordinateUtils.h:115
Structure to hold triangles in spherical coordinates while building the geometry. ...
Definition: DtSphericalCoordinateUtils.h:123
DtSphericalVertex< T > myV1
Definition: DtSphericalCoordinateUtils.h:134
DtSphericalVertex< T > myV2
Definition: DtSphericalCoordinateUtils.h:135
Structure to hold a quad in spherical coordinates during geometry construction.
Definition: DtSphericalCoordinateUtils.h:99
DtSphericalVertex< T > myV3
Definition: DtSphericalCoordinateUtils.h:136
DtSphericalQuad(DtSphericalVertex< T > topLeft, DtSphericalVertex< T > topRight, DtSphericalVertex< T > bottomLeft, DtSphericalVertex< T > bottomRight)
CTOR Instantiates a new Spherical Quad with the given vertices.
std::list< DtVector3< T > > myVertices
The vertex array to update.
Definition: DtSphericalCoordinateUtils.h:86
Class to hold a vertex in spherical coordinates during geometry construction.
Definition: DtSphericalCoordinateUtils.h:20
std::map< DtSphericalVertex< T >, int > mySphericalToIndexMap
Stores the indices of the vertices in the vertex array.
Definition: DtSphericalCoordinateUtils.h:83
DtSphericalVertex(T inclination, T azimuth, T radius)
CTOR Instantiates a new spherical vertex.
int myNextIndex
The index of the next inserted vertex.
Definition: DtSphericalCoordinateUtils.h:92
DtSphericalVertex< T > myTopRight
Definition: DtSphericalCoordinateUtils.h:114
DtVector3< T > toCartesian() const
Returns the equivalent cartesian coordinate Converts this DtSphericalVertex to Cartesian coordinates...
Caches the cartesian version of spherical vertices and their normals into the specified arrays...
Definition: DtSphericalCoordinateUtils.h:62
T myRadius
The vertex's representative radius.
Definition: DtSphericalCoordinateUtils.h:55
DtSphericalVertex< T > myTopLeft
Definition: DtSphericalCoordinateUtils.h:113
T myInclination
The vertex's representative inclination.
Definition: DtSphericalCoordinateUtils.h:49
DtSphericalTriangle(DtSphericalVertex< T > v1, DtSphericalVertex< T > v2, DtSphericalVertex< T > v3)
CTOR Instantiates a new Triangle using the given vertices.
2 dimensional vector
Definition: DtMath.h:21
int getIndex(const DtSphericalVertex< T > &vertex)
Get the given vertex's index Adds the given SphericalVertex into the vertex array and returns its ind...
std::list< DtVector3< T > > myNormals
The normal array to update.
Definition: DtSphericalCoordinateUtils.h:89
DtSphericalVertexCache()
CTOR Instantiates a new DtSphericalVertexCache for building the vertex and normal arrays for the elli...