Class that provides methods for checking and weighting collapses using fitmaps. More...
#include <quad_diag_collapse.h>
Static Public Member Functions | |
static bool | check_feasible (HEdgePointer hp, CoordType &V1, CoordType &V2, TriMeshType &tm, GRID &grid) |
static float | compute_weight (HEdgePointer hp, CoordType &P, TriMeshType &tm, GRID &grid) |
static float & | Mfit_coeff () |
Coefficient that will be multiplied with the value of the M-Fitmap. | |
Protected Types | |
typedef TriMeshType::CoordType | CoordType |
typedef TriMeshType::FacePointer | FacePointer |
typedef TriMeshType::template PerVertexAttributeHandle < float > | Fitmap_attr |
typedef vcg::GridStaticPtr < TriFaceType, typename TriFaceType::ScalarType > | GRID |
typedef MeshType::HEdgePointer | HEdgePointer |
typedef TriMeshType::ScalarType | ScalarType |
typedef TriMeshType::FaceType | TriFaceType |
typedef MeshType::VertexPointer | VertexPointer |
Static Protected Member Functions | |
static float | compute_fitmap (HEdgePointer hp, CoordType &P, TriMeshType &tm, GRID &grid, Fitmap_attr &attr) |
static FacePointer | getClosestFaceRay (TriMeshType &m, GRID &grid, CoordType P, CoordType raydir, CoordType *closest, ScalarType *minDist) |
Class that provides methods for checking and weighting collapses using fitmaps.
Definition at line 56 of file quad_diag_collapse.h.
typedef TriMeshType::CoordType vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::CoordType [protected] |
Reimplemented from vcg::tri::FeasibilityCheck< MeshType, TriMeshType >.
Definition at line 67 of file quad_diag_collapse.h.
typedef TriMeshType::FacePointer vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::FacePointer [protected] |
Definition at line 69 of file quad_diag_collapse.h.
typedef TriMeshType::template PerVertexAttributeHandle<float> vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::Fitmap_attr [protected] |
Definition at line 71 of file quad_diag_collapse.h.
typedef vcg::GridStaticPtr<TriFaceType, typename TriFaceType::ScalarType> vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::GRID [protected] |
Reimplemented from vcg::tri::FeasibilityCheck< MeshType, TriMeshType >.
Definition at line 65 of file quad_diag_collapse.h.
typedef MeshType::HEdgePointer vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::HEdgePointer [protected] |
Reimplemented from vcg::tri::FeasibilityCheck< MeshType, TriMeshType >.
Definition at line 62 of file quad_diag_collapse.h.
typedef TriMeshType::ScalarType vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::ScalarType [protected] |
Definition at line 68 of file quad_diag_collapse.h.
typedef TriMeshType::FaceType vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::TriFaceType [protected] |
Reimplemented from vcg::tri::FeasibilityCheck< MeshType, TriMeshType >.
Definition at line 64 of file quad_diag_collapse.h.
typedef MeshType::VertexPointer vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::VertexPointer [protected] |
Definition at line 61 of file quad_diag_collapse.h.
static bool vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::check_feasible | ( | HEdgePointer | hp, |
CoordType & | V1, | ||
CoordType & | V2, | ||
TriMeshType & | tm, | ||
GRID & | grid | ||
) | [inline, static] |
Checks if an operation is feasible using M-Fitmap
hp | Pointer to an halfedge that identifies a diagonal |
V1 | Coordinates of the first point of the diagonal |
V2 | Coordinates of the second point of the diagonal |
tm | Reference mesh |
grid | Spatial index used for raycasting |
Reimplemented from vcg::tri::FeasibilityCheck< MeshType, TriMeshType >.
Definition at line 92 of file quad_diag_collapse.h.
static float vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::compute_fitmap | ( | HEdgePointer | hp, |
CoordType & | P, | ||
TriMeshType & | tm, | ||
GRID & | grid, | ||
Fitmap_attr & | attr | ||
) | [inline, static, protected] |
Performs the computation of a fitmap on a given point
hp | Pointer to an halfedge that identifies a diagonal |
P | Coordinates of the point on which fitmap will be computed |
tm | Reference mesh |
grid | Spatial index used for raycasting |
attr | Fitmap type (S or M) |
Definition at line 133 of file quad_diag_collapse.h.
static float vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::compute_weight | ( | HEdgePointer | hp, |
CoordType & | P, | ||
TriMeshType & | tm, | ||
GRID & | grid | ||
) | [inline, static] |
Computes the weight of a diagonal using S-Fitmap
hp | Pointer to an halfedge that identifies a diagonal |
P | Coordinates of the point on which fitmap will be computed |
tm | Reference mesh |
grid | Spatial index used for raycasting |
Reimplemented from vcg::tri::OperationWeight< MeshType, TriMeshType >.
Definition at line 113 of file quad_diag_collapse.h.
static FacePointer vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::getClosestFaceRay | ( | TriMeshType & | m, |
GRID & | grid, | ||
CoordType | P, | ||
CoordType | raydir, | ||
CoordType * | closest, | ||
ScalarType * | minDist | ||
) | [inline, static, protected] |
Definition at line 169 of file quad_diag_collapse.h.
static float& vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::Mfit_coeff | ( | ) | [inline, static] |
Coefficient that will be multiplied with the value of the M-Fitmap.
Definition at line 76 of file quad_diag_collapse.h.