Struct Vertex3f

Struct Documentation

struct Vertex3f

A vertex with position and normal.

Public Functions

inline Vertex3f(const Eigen::Vector3f &pos, const Eigen::Vector3f &norm)

Constructor with position and normal.

Parameters:
  • pos[in] – vertex position

  • norm[in] – vertex normal

inline Vertex3f(float x, float y, float z)

Constructor with position only, normal set to 0.

Parameters:
  • x[in] – X coordinate of vertex position

  • y[in] – Y coordinate of vertex position

  • z[in] – Z coordinate of vertex position

inline Vertex3f(float x, float y, float z, float nx, float ny, float nz)

Constructor with position and normal components.

Parameters:
  • x[in] – X coordinate of vertex position

  • y[in] – Y coordinate of vertex position

  • z[in] – Z coordinate of vertex position

  • nx[in] – X coordinate of vertex normal

  • ny[in] – Y coordinate of vertex normal

  • nz[in] – Z coordinate of vertex normal

Public Members

Eigen::Vector3f position

Vertex position.

Eigen::Vector3f normal

Vertex normal.