GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Decimate2 Namespace Reference

Classes

struct  Vec3
struct  SymmetricMatrix
struct  Vertex
struct  Triangle
struct  Edge
struct  Mesh

Functions

Vec3 cross (const Vec3 &a, const Vec3 &b)
bool readOBJ (const std::string &filename, std::vector< Vertex > &verts, std::vector< Triangle > &tris)
void writeOBJ (const std::string &filename, const std::vector< Vertex > &verts, const std::vector< Triangle > &tris)
SymmetricMatrix planeQuadric (const Vec3 &v0, const Vec3 &v1, const Vec3 &v2)
void computeVertexQuadrics (std::vector< Vertex > &verts, const std::vector< Triangle > &tris)
Vec3 midpoint (const Vec3 &a, const Vec3 &b)
double computeEdgeCost (const Vertex &v1, const Vertex &v2, Vec3 &opt)
void decimate (std::vector< Vertex > &verts, std::vector< Triangle > &tris, float targetRatio)

Function Documentation

◆ computeEdgeCost()

double Decimate2::computeEdgeCost ( const Vertex & v1,
const Vertex & v2,
Vec3 & opt )
Here is the caller graph for this function:

◆ computeVertexQuadrics()

void Decimate2::computeVertexQuadrics ( std::vector< Vertex > & verts,
const std::vector< Triangle > & tris )
Here is the caller graph for this function:

◆ cross()

Vec3 Decimate2::cross ( const Vec3 & a,
const Vec3 & b )
Here is the caller graph for this function:

◆ decimate()

void Decimate2::decimate ( std::vector< Vertex > & verts,
std::vector< Triangle > & tris,
float targetRatio )
Here is the caller graph for this function:

◆ midpoint()

Vec3 Decimate2::midpoint ( const Vec3 & a,
const Vec3 & b )
Here is the caller graph for this function:

◆ planeQuadric()

SymmetricMatrix Decimate2::planeQuadric ( const Vec3 & v0,
const Vec3 & v1,
const Vec3 & v2 )
Here is the caller graph for this function:

◆ readOBJ()

bool Decimate2::readOBJ ( const std::string & filename,
std::vector< Vertex > & verts,
std::vector< Triangle > & tris )
Here is the caller graph for this function:

◆ writeOBJ()

void Decimate2::writeOBJ ( const std::string & filename,
const std::vector< Vertex > & verts,
const std::vector< Triangle > & tris )
Here is the caller graph for this function: