#include <distortion.h>
Public Types | |
typedef MeshType::CoordType | CoordType |
typedef MeshType::FaceType::CurVecType | CurVecType |
enum | DistType { AreaDist, EdgeDist, AngleDist, CrossDist, L2Stretch, LInfStretch } |
typedef MeshType::FaceType | FaceType |
typedef MeshType::ScalarType | ScalarType |
typedef Point2< TexScalarType > | TexCoordType |
typedef MeshType::FaceType::TexCoordType::ScalarType | TexScalarType |
typedef MeshType::VertexType | VertexType |
Static Public Member Functions | |
static ScalarType | AngleCos3D (const FaceType *f, int e) |
static ScalarType | AngleCosDistortion (const FaceType *f, int e) |
static ScalarType | AngleCosUV (const FaceType *f, int e) |
static ScalarType | AngleDistortion (const FaceType *f) |
static ScalarType | AngleRad3D (const FaceType *f, int e) |
static ScalarType | AngleRadDistortion (const FaceType *f, int e) |
static ScalarType | AngleRadUV (const FaceType *f, int e) |
static ScalarType | Area3D (const FaceType *f) |
static ScalarType | AreaDistortion (const FaceType *f, ScalarType AreaScaleVal) |
static ScalarType | AreaUV (const FaceType *f) |
static ScalarType | EdgeDistortion (const FaceType *f, int e, ScalarType EdgeScaleVal) |
static ScalarType | EdgeLenght3D (const FaceType *f, int e) |
static ScalarType | EdgeLenghtUV (const FaceType *f, int e) |
static bool | Folded (const FaceType *f) |
return the number of folded faces | |
static int | Folded (const MeshType &m) |
static bool | GloballyUnFolded (const MeshType &m) |
static ScalarType | L2StretchEnergySquared (const FaceType *f, ScalarType AreaScaleVal) |
static ScalarType | LInfStretchEnergy (const FaceType *f, ScalarType AreaScaleVal) |
static ScalarType | MeshAngleDistortion (const MeshType &m) |
static void | MeshScalingFactor (const MeshType &m, ScalarType &AreaScale, ScalarType &EdgeScale) |
return the global scaling factors from 3D to UV | |
static ScalarType | SetFQAsCrossDirDistortion (MeshType &m) |
static ScalarType | SetQasDistorsion (MeshType &m, DistType DType=AreaDist) |
Definition at line 53 of file distortion.h.
typedef MeshType::CoordType vcg::tri::Distortion< MeshType, PerWedgeFlag >::CoordType |
Definition at line 58 of file distortion.h.
typedef MeshType::FaceType::CurVecType vcg::tri::Distortion< MeshType, PerWedgeFlag >::CurVecType |
Definition at line 60 of file distortion.h.
typedef MeshType::FaceType vcg::tri::Distortion< MeshType, PerWedgeFlag >::FaceType |
Definition at line 56 of file distortion.h.
typedef MeshType::ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::ScalarType |
Definition at line 59 of file distortion.h.
typedef Point2<TexScalarType> vcg::tri::Distortion< MeshType, PerWedgeFlag >::TexCoordType |
Definition at line 62 of file distortion.h.
typedef MeshType::FaceType::TexCoordType::ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::TexScalarType |
Definition at line 61 of file distortion.h.
typedef MeshType::VertexType vcg::tri::Distortion< MeshType, PerWedgeFlag >::VertexType |
Definition at line 57 of file distortion.h.
enum vcg::tri::Distortion::DistType |
Definition at line 178 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleCos3D | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
Definition at line 107 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleCosDistortion | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
return the absolute difference between angle in 3D space and texture space Actually the difference in cos space
Angle_3D;
Definition at line 182 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleCosUV | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
Definition at line 122 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleDistortion | ( | const FaceType * | f | ) | [inline, static] |
return the variance of angle, normalized in absolute value
Definition at line 201 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleRad3D | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
Definition at line 142 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleRadDistortion | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
return the absolute difference between angle in 3D space and texture space Actually the difference in cos space
Angle_3D;
Definition at line 191 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AngleRadUV | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
Definition at line 154 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::Area3D | ( | const FaceType * | f | ) | [inline, static] |
Definition at line 64 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AreaDistortion | ( | const FaceType * | f, |
ScalarType | AreaScaleVal | ||
) | [inline, static] |
return the variance of area, normalized in absolute value, the scalar AreaScaleVal may be calculated by using the ScalingFactor function
Definition at line 248 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::AreaUV | ( | const FaceType * | f | ) | [inline, static] |
Definition at line 69 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::EdgeDistortion | ( | const FaceType * | f, |
int | e, | ||
ScalarType | EdgeScaleVal | ||
) | [inline, static] |
return the variance of edge length, normalized in absolute value, the needed scaling factor EdgeScaleVal may be calculated by using the ScalingFactor function
Definition at line 234 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::EdgeLenght3D | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
Definition at line 85 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::EdgeLenghtUV | ( | const FaceType * | f, |
int | e | ||
) | [inline, static] |
Definition at line 92 of file distortion.h.
static bool vcg::tri::Distortion< MeshType, PerWedgeFlag >::Folded | ( | const FaceType * | f | ) | [inline, static] |
return the number of folded faces
Definition at line 314 of file distortion.h.
static int vcg::tri::Distortion< MeshType, PerWedgeFlag >::Folded | ( | const MeshType & | m | ) | [inline, static] |
Definition at line 322 of file distortion.h.
static bool vcg::tri::Distortion< MeshType, PerWedgeFlag >::GloballyUnFolded | ( | const MeshType & | m | ) | [inline, static] |
Definition at line 333 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::L2StretchEnergySquared | ( | const FaceType * | f, |
ScalarType | AreaScaleVal | ||
) | [inline, static] |
Definition at line 259 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::LInfStretchEnergy | ( | const FaceType * | f, |
ScalarType | AreaScaleVal | ||
) | [inline, static] |
Definition at line 285 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::MeshAngleDistortion | ( | const MeshType & | m | ) | [inline, static] |
Definition at line 339 of file distortion.h.
static void vcg::tri::Distortion< MeshType, PerWedgeFlag >::MeshScalingFactor | ( | const MeshType & | m, |
ScalarType & | AreaScale, | ||
ScalarType & | EdgeScale | ||
) | [inline, static] |
return the global scaling factors from 3D to UV
Definition at line 209 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::SetFQAsCrossDirDistortion | ( | MeshType & | m | ) | [inline, static] |
Definition at line 351 of file distortion.h.
static ScalarType vcg::tri::Distortion< MeshType, PerWedgeFlag >::SetQasDistorsion | ( | MeshType & | m, |
DistType | DType = AreaDist |
||
) | [inline, static] |
Definition at line 400 of file distortion.h.