Public Types | Static Public Member Functions
vcg::tri::Stat< StatMeshType > Class Template Reference

#include <stat.h>

List of all members.

Public Types

typedef vcg::Box3< ScalarTypeBox3Type
typedef MeshType::EdgeIterator EdgeIterator
typedef MeshType::FaceContainer FaceContainer
typedef MeshType::FaceIterator FaceIterator
typedef MeshType::FacePointer FacePointer
typedef MeshType::FaceType FaceType
typedef StatMeshType MeshType
typedef MeshType::ScalarType ScalarType
typedef MeshType::VertexIterator VertexIterator
typedef MeshType::VertexPointer VertexPointer
typedef MeshType::VertexType VertexType

Static Public Member Functions

static Point3< ScalarTypeComputeCloudBarycenter (MeshType &m, bool useQualityAsWeight=false)
 compute the pointcloud barycenter. E.g. it assume each vertex has a mass. If useQualityAsWeight is true, vertex quality is the mass of the vertices
static ScalarType ComputeEdgeLengthAverage (MeshType &m)
static void ComputeEdgeLengthHistogram (MeshType &m, Histogramf &h)
static ScalarType ComputeFaceEdgeLengthAverage (MeshType &m)
static void ComputeFaceEdgeLengthDistribution (MeshType &m, Distribution< float > &h, bool includeFauxEdge=false)
static ScalarType ComputeMeshArea (MeshType &m)
static ScalarType ComputeMeshVolume (MeshType &m)
static std::pair< ScalarType,
ScalarType
ComputePerEdgeQualityMinMax (MeshType &m)
static void ComputePerFaceQualityDistribution (MeshType &m, Distribution< typename MeshType::ScalarType > &h, bool selectionOnly=false)
static void ComputePerFaceQualityHistogram (MeshType &m, Histogramf &h, bool selectionOnly=false, int HistSize=10000)
static void ComputePerFaceQualityMinMax (MeshType &m, float &minV, float &maxV)
static std::pair< ScalarType,
ScalarType
ComputePerFaceQualityMinMax (MeshType &m)
static void ComputePerVertexQualityDistribution (MeshType &m, Distribution< float > &h, bool selectionOnly=false)
static void ComputePerVertexQualityHistogram (MeshType &m, Histogramf &h, bool selectionOnly=false, int HistSize=10000)
static void ComputePerVertexQualityMinMax (MeshType &m, float &minV, float &maxV)
static std::pair< float, float > ComputePerVertexQualityMinMax (MeshType &m)
static Point3< ScalarTypeComputeShellBarycenter (MeshType &m)
 compute the barycenter of the surface thin-shell. E.g. it assume a 'empty' model where all the mass is located on the surface and compute the barycenter of that thinshell. Works for any triangulated model (no problem with open, nonmanifold selfintersecting models). Useful for computing the barycenter of 2D planar figures.

Detailed Description

template<class StatMeshType>
class vcg::tri::Stat< StatMeshType >

Definition at line 42 of file stat.h.


Member Typedef Documentation

template<class StatMeshType >
typedef vcg::Box3<ScalarType> vcg::tri::Stat< StatMeshType >::Box3Type

Definition at line 55 of file stat.h.

template<class StatMeshType >
typedef MeshType::EdgeIterator vcg::tri::Stat< StatMeshType >::EdgeIterator

Definition at line 53 of file stat.h.

template<class StatMeshType >
typedef MeshType::FaceContainer vcg::tri::Stat< StatMeshType >::FaceContainer

Definition at line 54 of file stat.h.

template<class StatMeshType >
typedef MeshType::FaceIterator vcg::tri::Stat< StatMeshType >::FaceIterator

Definition at line 52 of file stat.h.

template<class StatMeshType >
typedef MeshType::FacePointer vcg::tri::Stat< StatMeshType >::FacePointer

Definition at line 51 of file stat.h.

template<class StatMeshType >
typedef MeshType::FaceType vcg::tri::Stat< StatMeshType >::FaceType

Definition at line 50 of file stat.h.

template<class StatMeshType >
typedef StatMeshType vcg::tri::Stat< StatMeshType >::MeshType

Definition at line 45 of file stat.h.

template<class StatMeshType >
typedef MeshType::ScalarType vcg::tri::Stat< StatMeshType >::ScalarType

Definition at line 49 of file stat.h.

template<class StatMeshType >
typedef MeshType::VertexIterator vcg::tri::Stat< StatMeshType >::VertexIterator

Definition at line 48 of file stat.h.

template<class StatMeshType >
typedef MeshType::VertexPointer vcg::tri::Stat< StatMeshType >::VertexPointer

Definition at line 47 of file stat.h.

template<class StatMeshType >
typedef MeshType::VertexType vcg::tri::Stat< StatMeshType >::VertexType

Definition at line 46 of file stat.h.


Member Function Documentation

template<class StatMeshType >
static Point3<ScalarType> vcg::tri::Stat< StatMeshType >::ComputeCloudBarycenter ( MeshType m,
bool  useQualityAsWeight = false 
) [inline, static]

compute the pointcloud barycenter. E.g. it assume each vertex has a mass. If useQualityAsWeight is true, vertex quality is the mass of the vertices

Definition at line 122 of file stat.h.

template<class StatMeshType >
static ScalarType vcg::tri::Stat< StatMeshType >::ComputeEdgeLengthAverage ( MeshType m) [inline, static]

Definition at line 273 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputeEdgeLengthHistogram ( MeshType m,
Histogramf h 
) [inline, static]

Definition at line 259 of file stat.h.

template<class StatMeshType >
static ScalarType vcg::tri::Stat< StatMeshType >::ComputeFaceEdgeLengthAverage ( MeshType m) [inline, static]

Definition at line 290 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputeFaceEdgeLengthDistribution ( MeshType m,
Distribution< float > &  h,
bool  includeFauxEdge = false 
) [inline, static]

Definition at line 280 of file stat.h.

template<class StatMeshType >
static ScalarType vcg::tri::Stat< StatMeshType >::ComputeMeshArea ( MeshType m) [inline, static]

Definition at line 173 of file stat.h.

template<class StatMeshType >
static ScalarType vcg::tri::Stat< StatMeshType >::ComputeMeshVolume ( MeshType m) [inline, static]

Definition at line 167 of file stat.h.

template<class StatMeshType >
static std::pair<ScalarType,ScalarType> vcg::tri::Stat< StatMeshType >::ComputePerEdgeQualityMinMax ( MeshType m) [inline, static]

Definition at line 103 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputePerFaceQualityDistribution ( MeshType m,
Distribution< typename MeshType::ScalarType > &  h,
bool  selectionOnly = false 
) [inline, static]

Definition at line 195 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputePerFaceQualityHistogram ( MeshType m,
Histogramf h,
bool  selectionOnly = false,
int  HistSize = 10000 
) [inline, static]

Definition at line 207 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputePerFaceQualityMinMax ( MeshType m,
float &  minV,
float &  maxV 
) [inline, static]

Definition at line 82 of file stat.h.

template<class StatMeshType >
static std::pair<ScalarType,ScalarType> vcg::tri::Stat< StatMeshType >::ComputePerFaceQualityMinMax ( MeshType m) [inline, static]

Definition at line 88 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputePerVertexQualityDistribution ( MeshType m,
Distribution< float > &  h,
bool  selectionOnly = false 
) [inline, static]

Definition at line 184 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputePerVertexQualityHistogram ( MeshType m,
Histogramf h,
bool  selectionOnly = false,
int  HistSize = 10000 
) [inline, static]

Definition at line 220 of file stat.h.

template<class StatMeshType >
static void vcg::tri::Stat< StatMeshType >::ComputePerVertexQualityMinMax ( MeshType m,
float &  minV,
float &  maxV 
) [inline, static]

Definition at line 57 of file stat.h.

template<class StatMeshType >
static std::pair<float,float> vcg::tri::Stat< StatMeshType >::ComputePerVertexQualityMinMax ( MeshType m) [inline, static]

Definition at line 62 of file stat.h.

template<class StatMeshType >
static Point3<ScalarType> vcg::tri::Stat< StatMeshType >::ComputeShellBarycenter ( MeshType m) [inline, static]

compute the barycenter of the surface thin-shell. E.g. it assume a 'empty' model where all the mass is located on the surface and compute the barycenter of that thinshell. Works for any triangulated model (no problem with open, nonmanifold selfintersecting models). Useful for computing the barycenter of 2D planar figures.

Definition at line 152 of file stat.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:43:06