![]() |
VR-Forces Development_Version Class Documentation
|
Caches the cartesian version of spherical vertices and their normals into the specified arrays. More...
Public Member Functions | |
| DtSphericalVertexCache () | |
| CTOR Instantiates a new DtSphericalVertexCache for building the vertex and normal arrays for the ellipse arc model's geometry. | |
| int | getIndex (const DtSphericalVertex< T > &vertex) |
| Get the given vertex's index Adds the given SphericalVertex into the vertex array and returns its index, or simply returns the index if it has already been added. | |
Public Attributes | |
| std::map< DtSphericalVertex< T > , int > | mySphericalToIndexMap |
| Stores the indices of the vertices in the vertex array. | |
| std::list< DtVector3< T > > | myVertices |
| The vertex array to update. | |
| std::list< DtVector3< T > > | myNormals |
| The normal array to update. | |
| int | myNextIndex |
| The index of the next inserted vertex. | |
Caches the cartesian version of spherical vertices and their normals into the specified arrays.
| makVrv::DtSphericalVertexCache< T >::DtSphericalVertexCache | ( | ) |
CTOR Instantiates a new DtSphericalVertexCache for building the vertex and normal arrays for the ellipse arc model's geometry.
| int makVrv::DtSphericalVertexCache< T >::getIndex | ( | const DtSphericalVertex< T > & | vertex | ) |
Get the given vertex's index Adds the given SphericalVertex into the vertex array and returns its index, or simply returns the index if it has already been added.
Also generates and stores the vertex's normal.
| vertex | the vertex to store and/or return the index of |
| std::map<DtSphericalVertex<T>, int> makVrv::DtSphericalVertexCache< T >::mySphericalToIndexMap |
Stores the indices of the vertices in the vertex array.
| std::list<DtVector3<T> > makVrv::DtSphericalVertexCache< T >::myVertices |
The vertex array to update.
| std::list<DtVector3<T> > makVrv::DtSphericalVertexCache< T >::myNormals |
The normal array to update.
| int makVrv::DtSphericalVertexCache< T >::myNextIndex |
The index of the next inserted vertex.