NDEVR
API Documentation
ZippedRadialMeshOptions

Logic for setting up a mesh that is broken apart by latitude and longitude lines with a set angle difference between them. More...

Collaboration diagram for ZippedRadialMeshOptions:
[legend]

Public Member Functions

 ZippedRadialMeshOptions (uint04 width, uint04 height)
 Constructs mesh options with the given segment counts.
Vector< 2, fltp08angleToTextureCoord (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, uint04size = 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].

Detailed Description

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.

Constructor & Destructor Documentation

◆ ZippedRadialMeshOptions()

ZippedRadialMeshOptions::ZippedRadialMeshOptions ( uint04 width,
uint04 height )
inline

Constructs mesh options with the given segment counts.

Parameters
[in]widthThe number of longitudinal (phi) segments.
[in]heightThe number of latitudinal (theta) segments.

Definition at line 53 of file ShapeConstructors.h.

References size.

Member Function Documentation

◆ angleToTextureCoord()

Vector< 2, fltp08 > ZippedRadialMeshOptions::angleToTextureCoord ( Vector< 2, Angle< fltp08 > > angle) const

Converts a [phi, theta] angle pair to normalized texture coordinates.

Parameters
[in]angleThe [phi, theta] angle pair to convert.
Returns
The [u, v] texture coordinates in the range [0, 1].

◆ angleToVertexIndex()

uint04 ZippedRadialMeshOptions::angleToVertexIndex ( Vector< 2, Angle< fltp08 > > angle) const

Converts a [phi, theta] angle pair to the nearest vertex index.

Parameters
[in]angleThe [phi, theta] angle pair to look up.
Returns
The linear vertex index corresponding to the given angle.

◆ vertexIndexToAngle()

Vector< 2, Angle< fltp08 > > ZippedRadialMeshOptions::vertexIndexToAngle ( uint04 index) const

Converts a linear vertex index to its corresponding [phi, theta] angles.

Parameters
[in]indexThe linear vertex index.
Returns
The [phi, theta] angle pair for the given vertex index.

The documentation for this struct was generated from the following file: