Static Public Member Functions | Protected Types | Static Protected Member Functions
vcg::tri::FitmapsCollapse< MeshType, TriMeshType > Class Template Reference

Class that provides methods for checking and weighting collapses using fitmaps. More...

#include <quad_diag_collapse.h>

Inheritance diagram for vcg::tri::FitmapsCollapse< MeshType, TriMeshType >:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

template<class MeshType, class TriMeshType>
class vcg::tri::FitmapsCollapse< MeshType, TriMeshType >

Class that provides methods for checking and weighting collapses using fitmaps.

Definition at line 56 of file quad_diag_collapse.h.


Member Typedef Documentation

template<class MeshType , class TriMeshType >
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.

template<class MeshType , class TriMeshType >
typedef TriMeshType::FacePointer vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::FacePointer [protected]

Definition at line 69 of file quad_diag_collapse.h.

template<class MeshType , class TriMeshType >
typedef TriMeshType::template PerVertexAttributeHandle<float> vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::Fitmap_attr [protected]

Definition at line 71 of file quad_diag_collapse.h.

template<class MeshType , class TriMeshType >
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.

template<class MeshType , class TriMeshType >
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.

template<class MeshType , class TriMeshType >
typedef TriMeshType::ScalarType vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::ScalarType [protected]

Definition at line 68 of file quad_diag_collapse.h.

template<class MeshType , class TriMeshType >
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.

template<class MeshType , class TriMeshType >
typedef MeshType::VertexPointer vcg::tri::FitmapsCollapse< MeshType, TriMeshType >::VertexPointer [protected]

Definition at line 61 of file quad_diag_collapse.h.


Member Function Documentation

template<class MeshType , class TriMeshType >
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

Parameters:
hpPointer to an halfedge that identifies a diagonal
V1Coordinates of the first point of the diagonal
V2Coordinates of the second point of the diagonal
tmReference mesh
gridSpatial index used for raycasting
Returns:
Value indicating whether diagnoal is collapsible

Reimplemented from vcg::tri::FeasibilityCheck< MeshType, TriMeshType >.

Definition at line 92 of file quad_diag_collapse.h.

template<class MeshType , class TriMeshType >
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

Parameters:
hpPointer to an halfedge that identifies a diagonal
PCoordinates of the point on which fitmap will be computed
tmReference mesh
gridSpatial index used for raycasting
attrFitmap type (S or M)
Returns:
Computed value of the fitmap

Definition at line 133 of file quad_diag_collapse.h.

template<class MeshType , class TriMeshType >
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

Parameters:
hpPointer to an halfedge that identifies a diagonal
PCoordinates of the point on which fitmap will be computed
tmReference mesh
gridSpatial index used for raycasting
Returns:
Computed weight

Reimplemented from vcg::tri::OperationWeight< MeshType, TriMeshType >.

Definition at line 113 of file quad_diag_collapse.h.

template<class MeshType , class TriMeshType >
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.

template<class MeshType , class TriMeshType >
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.


The documentation for this class was generated from the following file:


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:42:22