![]() |
NDEVR
API Documentation
|
Logic for setting up a mesh that is broken apart by latitude and longitude lines with a set angle difference between them. More...
Public Member Functions | |
| ZippedRadialMeshOptions (uint04 width, uint04 height) | |
| Constructs mesh options with the given segment counts. | |
| Vector< 2, fltp08 > | angleToTextureCoord (Vector< 2, Angle< fltp08 > > angle) const |
| Converts a [phi, theta] angle pair to normalized texture coordinates. | |
| uint04 | angleToVertexIndex (Vector< 2, Angle< fltp08 > > angle) const |
| Converts a [phi, theta] angle pair to the nearest vertex index. | |
| Vector< 2, Angle< fltp08 > > | vertexIndexToAngle (uint04 index) const |
| Converts a linear vertex index to its corresponding [phi, theta] angles. | |
Public Attributes | |
| Bounds< 2, Angle< fltp08 > > | radial_bounds |
| The angular bounds of the radial mesh in [phi, theta]. | |
| Vector< 2, uint04 > | size = Vector <2, uint04>(44, 32) |
| The number of segments in [longitude, latitude] (width, height). | |
| Vector< 2, Angle< fltp08 > > | span |
| The angular span covered by the mesh in [phi, theta]. | |
Logic for setting up a mesh that is broken apart by latitude and longitude lines with a set angle difference between them.
Definition at line 47 of file ShapeConstructors.h.
Constructs mesh options with the given segment counts.
| [in] | width | The number of longitudinal (phi) segments. |
| [in] | height | The number of latitudinal (theta) segments. |
Definition at line 53 of file ShapeConstructors.h.
References size.
| Vector< 2, fltp08 > ZippedRadialMeshOptions::angleToTextureCoord | ( | Vector< 2, Angle< fltp08 > > | angle | ) | const |
Converts a [phi, theta] angle pair to normalized texture coordinates.
| [in] | angle | The [phi, theta] angle pair to convert. |
Converts a [phi, theta] angle pair to the nearest vertex index.
| [in] | angle | The [phi, theta] angle pair to look up. |
Converts a linear vertex index to its corresponding [phi, theta] angles.
| [in] | index | The linear vertex index. |