TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::MeshAlg::Geometry Class Reference

#include <MeshAlg.h>

Public Member Functions

Geometryoperator= (const Geometry &src)
 
void clear ()
 

Public Attributes

Array< Vector3vertexArray
 
Array< Vector3normalArray
 

Detailed Description

Convenient for passing around the per-vertex data that changes under animation. The faces and edges are needed to interpret these values.

Member Function Documentation

void G3D::MeshAlg::Geometry::clear ( )
inline
223  {
224  vertexArray.clear();
225  normalArray.clear();
226  }
Array< Vector3 > normalArray
Definition: MeshAlg.h:216
Array< Vector3 > vertexArray
Definition: MeshAlg.h:213

+ Here is the call graph for this function:

MeshAlg::Geometry & G3D::MeshAlg::Geometry::operator= ( const Geometry src)

Assignment is optimized using SSE.

117  {
118  vertexArray.resize(src.vertexArray.size());
119  normalArray.resize(src.vertexArray.size());
120 
121  System::memcpy(vertexArray.getCArray(), src.vertexArray.getCArray(), sizeof(Vector3)*vertexArray.size());
122  System::memcpy(normalArray.getCArray(), src.normalArray.getCArray(), sizeof(Vector3)*normalArray.size());
123 
124  return *this;
125 }
static void memcpy(void *dst, const void *src, size_t numBytes)
Definition: System.cpp:643
Array< Vector3 > normalArray
Definition: MeshAlg.h:216
Array< Vector3 > vertexArray
Definition: MeshAlg.h:213

+ Here is the call graph for this function:

Member Data Documentation

Array<Vector3> G3D::MeshAlg::Geometry::normalArray

Vertex normals

Array<Vector3> G3D::MeshAlg::Geometry::vertexArray

Vertex positions


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