Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
GeomReindex.cpp File Reference
#include "precompiled.h"
#include "GeomReindex.h"
#include "FCollada.h"
#include "FCDocument/FCDEntity.h"
#include "FCDocument/FCDGeometryMesh.h"
#include "FCDocument/FCDGeometryPolygons.h"
#include "FCDocument/FCDGeometryPolygonsInput.h"
#include "FCDocument/FCDGeometrySource.h"
#include "FCDocument/FCDSkinController.h"
#include <cassert>
#include <vector>
#include <map>
#include <algorithm>
Include dependency graph for GeomReindex.cpp:

Classes

struct  VertexData
 
struct  InserterWithoutDuplicates< T >
 

Macros

#define CMP(f)   if (a.f < b.f) return true; if (a.f > b.f) return false
 

Typedefs

typedef std::pair< float, float > uv_pair_type
 

Functions

bool similar (float a, float b)
 
bool operator== (const FCDJointWeightPair &a, const FCDJointWeightPair &b)
 
bool operator< (const FCDJointWeightPair &a, const FCDJointWeightPair &b)
 
bool operator== (const uv_pair_type &a, const uv_pair_type &b)
 
bool operator== (const VertexData &a, const VertexData &b)
 
bool operator< (const VertexData &a, const VertexData &b)
 
void CanonicaliseWeights (std::vector< FCDJointWeightPair > &weights)
 
void ReindexGeometry (FCDGeometryPolygons *polys, FCDSkinController *skin)
 

Macro Definition Documentation

◆ CMP

#define CMP (   f)    if (a.f < b.f) return true; if (a.f > b.f) return false

Typedef Documentation

◆ uv_pair_type

typedef std::pair<float, float> uv_pair_type

Function Documentation

◆ CanonicaliseWeights()

void CanonicaliseWeights ( std::vector< FCDJointWeightPair > &  weights)

◆ operator<() [1/2]

bool operator< ( const FCDJointWeightPair &  a,
const FCDJointWeightPair &  b 
)

◆ operator<() [2/2]

bool operator< ( const VertexData a,
const VertexData b 
)

◆ operator==() [1/3]

bool operator== ( const FCDJointWeightPair &  a,
const FCDJointWeightPair &  b 
)

◆ operator==() [2/3]

bool operator== ( const uv_pair_type a,
const uv_pair_type b 
)

◆ operator==() [3/3]

bool operator== ( const VertexData a,
const VertexData b 
)

◆ ReindexGeometry()

void ReindexGeometry ( FCDGeometryPolygons *  polys,
FCDSkinController *  skin 
)

◆ similar()

bool similar ( float  a,
float  b 
)