doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
optimize.cpp File Reference
#include "../../../idlib/precompiled.h"
#include "dmap.h"

Go to the source code of this file.

Classes

struct  edgeLength_t
 
struct  originalEdges_t
 
struct  edgeCrossing_s
 

Macros

#define MAX_OPT_VERTEXES   0x10000
 
#define MAX_OPT_EDGES   0x40000
 
#define COLINEAR_EPSILON   0.1
 

Typedefs

typedef struct edgeCrossing_s edgeCrossing_t
 

Functions

void AddEdgeIfNotAlready (optVertex_t *v1, optVertex_t *v2)
 
void SplitOriginalEdgesAtCrossings (optimizeGroup_t *opt)
 
void SetGroupTriPlaneNums (optimizeGroup_t *groups)
 
void OptimizeGroupList (optimizeGroup_t *groupList)
 
void OptimizeEntity (uEntity_t *e)
 

Variables

idBounds optBounds
 
int numOptVerts
 
optVertex_t optVerts [MAX_OPT_VERTEXES]
 

Macro Definition Documentation

#define COLINEAR_EPSILON   0.1

Definition at line 606 of file optimize.cpp.

#define MAX_OPT_EDGES   0x40000

Definition at line 56 of file optimize.cpp.

#define MAX_OPT_VERTEXES   0x10000

Definition at line 52 of file optimize.cpp.

Typedef Documentation

Function Documentation

void AddEdgeIfNotAlready ( optVertex_t v1,
optVertex_t v2 
)

Definition at line 1321 of file optimize.cpp.

void OptimizeEntity ( uEntity_t e)

Definition at line 1983 of file optimize.cpp.

void OptimizeGroupList ( optimizeGroup_t groupList)

Definition at line 1947 of file optimize.cpp.

void SetGroupTriPlaneNums ( optimizeGroup_t groups)

Definition at line 1927 of file optimize.cpp.

void SplitOriginalEdgesAtCrossings ( optimizeGroup_t opt)

Definition at line 1467 of file optimize.cpp.

Variable Documentation

int numOptVerts

Definition at line 53 of file optimize.cpp.

idBounds optBounds

Definition at line 50 of file optimize.cpp.

Definition at line 54 of file optimize.cpp.