#include <vector>
#include <string>
#include <sstream>
#include <vcg/simplex/vertex/base.h>
#include <vcg/simplex/face/base.h>
#include <vcg/connectors/hedge.h>
#include <vcg/complex/complex.h>
#include <vcg/complex/algorithms/update/topology.h>
#include <vcg/complex/algorithms/update/bounding.h>
#include <vcg/complex/algorithms/update/normal.h>
#include <vcg/complex/algorithms/clean.h>
#include <wrap/io_trimesh/import.h>
#include <wrap/io_trimesh/export_off.h>
#include <vcg/complex/algorithms/polygon_support.h>
#include <vcg/simplex/face/component_polygon.h>
#include <vcg/complex/algorithms/update/halfedge_indexed.h>
#include <vcg/complex/algorithms/local_optimization/quad_diag_collapse.h>
#include <vcg/complex/algorithms/update/edges.h>
#include <vcg/simplex/face/component_rt.h>
#include <vcg/complex/algorithms/update/fitmaps.h>
Go to the source code of this file.
Classes | |
class | CEdge |
class | CFace |
class | CHEdge |
class | CMesh |
class | CUsedTypes |
class | CVertex |
compositing wanted proprieties More... | |
class | MyCollapse |
Collapse for uniform simplification. More... | |
class | MyCollapseAdaptive |
Collapse operation for adaptive simplification using fitmaps. More... | |
class | MyPolyFace |
class | MyPolyMesh |
class | MyPolyVertex |
struct | PolyUsedTypes |
Typedefs | |
typedef CMesh::PerVertexAttributeHandle < float > | Fitmap_attr |
typedef vcg::GridStaticPtr < CMesh::FaceType, TriFaceType::ScalarType > | GRID |
typedef CMesh::FaceType | TriFaceType |
Functions | |
void | init_heap (MyPolyMesh &m, vcg::LocalOptimization< MyPolyMesh > &loc, bool adaptive) |
void | initGrid (CMesh &m) |
void | load_fitmaps (CMesh &m, char *fn) |
void | loadMesh (CMesh &m, char *fn, bool loadFitmaps=false) |
int | main (int argc, char *argv[]) |
bool | read_fitmaps (CMesh &m, const char *fn) |
bool | store_fitmaps (CMesh &m, const char *fn) |
typedef CMesh::PerVertexAttributeHandle<float> Fitmap_attr |
Definition at line 196 of file polygonmesh_quadsimpl.cpp.
Definition at line 194 of file polygonmesh_quadsimpl.cpp.
typedef CMesh::FaceType TriFaceType |
Definition at line 193 of file polygonmesh_quadsimpl.cpp.
void init_heap | ( | MyPolyMesh & | m, |
vcg::LocalOptimization< MyPolyMesh > & | loc, | ||
bool | adaptive | ||
) |
Initializes the heap of operations on a mesh
m | Mesh |
loc | |
Adaptive | Specifies if simplificaton will be adaptive |
Definition at line 226 of file polygonmesh_quadsimpl.cpp.
Initializes the grid for smoothing and fitmaps
m | Reference mesh |
Definition at line 203 of file polygonmesh_quadsimpl.cpp.
void load_fitmaps | ( | CMesh & | m, |
char * | fn | ||
) |
Load fitmaps for a mesh, computing them or reading values from a file
m | Mesh |
fn | Name of the mesh file |
Definition at line 315 of file polygonmesh_quadsimpl.cpp.
Load a mesh, from a file
m | Mesh that will be filled with data from a file |
fn | Name of the mesh file |
loadFitmaps | Specifies if fitmaps have to be loaded |
Definition at line 353 of file polygonmesh_quadsimpl.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 389 of file polygonmesh_quadsimpl.cpp.
bool read_fitmaps | ( | CMesh & | m, |
const char * | fn | ||
) |
Read fitmaps values from a file and loads them into a mesh
m | Mesh |
fn | Name of the file to read |
Definition at line 245 of file polygonmesh_quadsimpl.cpp.
bool store_fitmaps | ( | CMesh & | m, |
const char * | fn | ||
) |
Writes fitmaps values into a file
m | Mesh |
fn | Name of the file to write |
Definition at line 280 of file polygonmesh_quadsimpl.cpp.