My Project
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | List of all members
Vertex Class Reference

Class to store vertex state information. More...

#include <vertex.h>

Public Member Functions

 Vertex ()
 Constructor. NB Almost no default values set.
 
 Vertex (const Vertex &v)
 Copy constructor.
 
 Vertex (const XYZ &p)
 Construct from position only.
 
const XYZposition () const
 Accessor.
 
const XYZnormal () const
 Accessor.
 
const ByteRGBAcolour (uint c) const
 Accessor.
 
void position (const XYZ &p)
 Accessor.
 
void normal (const XYZ &n)
 Accessor.
 
void colour (uint c, const ByteRGBA &col)
 Accessor.
 
void colour (uint c, const FloatRGBA &col)
 Accessor.
 

Detailed Description

Class to store vertex state information.

There is no direct access to members. Should probably be a protected member class of TriangleMesh. sizeof(Vertex) should ideally be 3*4+3*4+2*4=32


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