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

#include <Welder.h>

Classes

class  Settings
 

Static Public Member Functions

static void weld (Array< Vector3 > &vertices, Array< Vector2 > &textureCoords, Array< Vector3 > &normals, Array< Array< int > * > &indices, const Settings &settings)
 
static void weld (Array< Vector3 > &vertices, Array< Vector2 > &textureCoords, Array< Vector3 > &normals, Array< int > &indices, const Settings &settings)
 

Private Member Functions

 Welder ()
 

Constructor & Destructor Documentation

G3D::Welder::Welder ( )
inlineprivate
16 {}

Member Function Documentation

void G3D::Welder::weld ( Array< Vector3 > &  vertices,
Array< Vector2 > &  textureCoords,
Array< Vector3 > &  normals,
Array< Array< int > * > &  indices,
const Settings settings 
)
static

Mutates geometry, texCoord, and indexArray so that the output has collocated vertices collapsed (welded).

Parameters
verticesInput and output
textureCoordsInput and output
normalsOutput only
indicesInput and output. This is an array of trilist indices.
489  {
490 
491  _internal::WeldHelper(settings.vertexWeldRadius).process
492  (vertexArray, texCoordArray, normalArray, indexArrayArray,
493  settings.normalSmoothingAngle, settings.textureWeldRadius, settings.normalWeldRadius);
494 
495 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void G3D::Welder::weld ( Array< Vector3 > &  vertices,
Array< Vector2 > &  textureCoords,
Array< Vector3 > &  normals,
Array< int > &  indices,
const Settings settings 
)
inlinestatic

Mutates geometry, texCoord, and indexArray so that the output has collocated vertices collapsed (welded).

Parameters
verticesInput and output
textureCoordsInput and output
normalsOutput only
indicesInput and output. This is an array of trilist indices.
78  {
79 
80  Array<Array<int>*> meta;
81  meta.append(&indices);
82  weld(vertices, textureCoords, normals, meta, settings);
83  }
static void weld(Array< Vector3 > &vertices, Array< Vector2 > &textureCoords, Array< Vector3 > &normals, Array< Array< int > * > &indices, const Settings &settings)
Definition: Welder.cpp:485

+ Here is the call graph for this function:


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