#include <Simplify.h>
Public Member Functions | |
double | calculate_error (int id_v1, int id_v2, vec3f &p_result) |
void | compact_mesh () |
bool | flipped (vec3f p, int i0, int i1, Vertex &v0, Vertex &v1, std::vector< int > &deleted) |
void | load_obj (const char *filename, bool process_uv=false) |
void | simplify_mesh (int target_count, double agressiveness=7, bool verbose=false) |
void | simplify_mesh_lossless (bool verbose=false) |
char * | trimwhitespace (char *str) |
void | update_mesh (int iteration) |
void | update_triangles (int i0, Vertex &v, std::vector< int > &deleted, int &deleted_triangles) |
void | update_uvs (int i0, const Vertex &v, const vec3f &p, std::vector< int > &deleted) |
double | vertex_error (SymetricMatrix q, double x, double y, double z) |
void | write_obj (const char *filename) |
Public Attributes | |
std::vector< std::string > | materials |
std::string | mtllib |
std::vector< Ref > | refs |
std::vector< Triangle > | triangles |
std::vector< Vertex > | vertices |
Definition at line 410 of file Simplify.h.
|
inline |
Definition at line 893 of file Simplify.h.
References SymetricMatrix::det(), min(), vec3f::x, vec3f::y, and vec3f::z.
|
inline |
Definition at line 855 of file Simplify.h.
References loopi, loopj, and Simplify::Triangle::v.
|
inline |
Definition at line 648 of file Simplify.h.
References vec3f::cross(), Simplify::Triangle::deleted, vec3f::dot(), loopk, Simplify::Triangle::n, vec3f::normalize(), Simplify::Vertex::tcount, Simplify::Vertex::tstart, and Simplify::Triangle::v.
|
inline |
Definition at line 954 of file Simplify.h.
References Simplify::Triangle::attr, fn, loopi, loopj, Simplify::Triangle::material, Simplify::Vertex::p, Simplify::TEXCOORD, Simplify::Triangle::v, vec3f::x, vec3f::y, and vec3f::z.
|
inline |
Definition at line 430 of file Simplify.h.
References Simplify::Triangle::attr, Simplify::Vertex::border, Simplify::Triangle::deleted, Simplify::Triangle::dirty, Simplify::Triangle::err, loopi, loopj, Simplify::Vertex::p, Simplify::Vertex::q, Simplify::Vertex::tcount, Simplify::TEXCOORD, Simplify::Vertex::tstart, and Simplify::Triangle::v.
Referenced by carla::geom::Simplification::Simplificate().
|
inline |
Definition at line 544 of file Simplify.h.
References Simplify::Triangle::attr, Simplify::Vertex::border, Simplify::Triangle::deleted, Simplify::Triangle::dirty, Simplify::Triangle::err, loopi, loopj, Simplify::Vertex::p, Simplify::Vertex::q, Simplify::Vertex::tcount, Simplify::TEXCOORD, Simplify::Vertex::tstart, and Simplify::Triangle::v.
|
inline |
Definition at line 931 of file Simplify.h.
|
inline |
Definition at line 731 of file Simplify.h.
References vec3f::cross(), vec3f::dot(), Simplify::Triangle::err, loopi, loopj, loopk, min(), Simplify::Triangle::n, vec3f::normalize(), Simplify::Vertex::tcount, Simplify::Vertex::tstart, Simplify::Triangle::v, vec3f::x, vec3f::y, and vec3f::z.
|
inline |
Definition at line 704 of file Simplify.h.
References Simplify::Triangle::deleted, Simplify::Triangle::dirty, Simplify::Triangle::err, loopk, min(), Simplify::Vertex::tcount, Simplify::Ref::tid, Simplify::Vertex::tstart, Simplify::Ref::tvertex, and Simplify::Triangle::v.
|
inline |
Definition at line 685 of file Simplify.h.
References Simplify::Triangle::deleted, interpolate(), loopk, Simplify::Vertex::tcount, Simplify::Ref::tid, Simplify::Vertex::tstart, Simplify::Ref::tvertex, Simplify::Triangle::uvs, and Simplify::Triangle::v.
|
inline |
Definition at line 886 of file Simplify.h.
|
inline |
Definition at line 1112 of file Simplify.h.
References loopi, Simplify::TEXCOORD, vector3::x, and vector3::y.
std::vector<std::string> Simplify::SimplificationObject::materials |
Definition at line 417 of file Simplify.h.
std::string Simplify::SimplificationObject::mtllib |
Definition at line 416 of file Simplify.h.
std::vector<Ref> Simplify::SimplificationObject::refs |
Definition at line 415 of file Simplify.h.
std::vector<Triangle> Simplify::SimplificationObject::triangles |
Definition at line 413 of file Simplify.h.
Referenced by carla::geom::Simplification::Simplificate().
std::vector<Vertex> Simplify::SimplificationObject::vertices |
Definition at line 414 of file Simplify.h.
Referenced by carla::geom::Simplification::Simplificate().