CARLA
Classes | Namespaces | Macros | Enumerations | Functions
Simplify.h File Reference
#include <iostream>
#include <fstream>
#include <algorithm>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <map>
#include <vector>
#include <string>
#include <math.h>
#include <float.h>
+ Include dependency graph for Simplify.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Simplify::Ref
 
class  Simplify::SimplificationObject
 
class  SymetricMatrix
 
struct  Simplify::Triangle
 
struct  vec3f
 
struct  vector3
 
struct  Simplify::Vertex
 

Namespaces

 Simplify
 

Macros

#define loopi(start_l, end_l)   for (int i = start_l; i < end_l; ++i)
 
#define loopi(start_l, end_l)   for (int i = start_l; i < end_l; ++i)
 
#define loopj(start_l, end_l)   for (int j = start_l; j < end_l; ++j)
 
#define loopk(start_l, end_l)   for (int k = start_l; k < end_l; ++k)
 

Enumerations

enum  Simplify::Attributes { Simplify::NONE, Simplify::NORMAL = 2, Simplify::TEXCOORD = 4, Simplify::COLOR = 8 }
 

Functions

vec3f barycentric (const vec3f &p, const vec3f &a, const vec3f &b, const vec3f &c)
 
vec3f interpolate (const vec3f &p, const vec3f &a, const vec3f &b, const vec3f &c, const vec3f attrs[3])
 
double min (double v1, double v2)
 

Macro Definition Documentation

◆ loopi [1/2]

#define loopi (   start_l,
  end_l 
)    for (int i = start_l; i < end_l; ++i)

◆ loopi [2/2]

#define loopi (   start_l,
  end_l 
)    for (int i = start_l; i < end_l; ++i)

Definition at line 27 of file Simplify.h.

◆ loopj

#define loopj (   start_l,
  end_l 
)    for (int j = start_l; j < end_l; ++j)

◆ loopk

#define loopk (   start_l,
  end_l 
)    for (int k = start_l; k < end_l; ++k)

Function Documentation

◆ barycentric()

vec3f barycentric ( const vec3f p,
const vec3f a,
const vec3f b,
const vec3f c 
)

Definition at line 267 of file Simplify.h.

References vec3f::dot().

Referenced by interpolate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ interpolate()

vec3f interpolate ( const vec3f p,
const vec3f a,
const vec3f b,
const vec3f c,
const vec3f  attrs[3] 
)

Definition at line 284 of file Simplify.h.

References barycentric(), vec3f::x, vec3f::y, and vec3f::z.

Referenced by Simplify::SimplificationObject::update_uvs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ min()

double min ( double  v1,
double  v2 
)