#include <pivot.h>
Public Types | |
typedef GridStaticPtr < typename MESH::VertexType, typename MESH::ScalarType > | StaticGrid |
Public Member Functions | |
int | addFace () |
Pivot (MESH &_mesh, float _radius, float _mindist=0.05, float _crease=-0.5) | |
bool | pivot (Hinge &Hinge, int &candidate, Point3f &end_pivot, std::vector< int > &targets) |
bool | seed (bool outside=true, int start=-1) |
Public Attributes | |
Box3f | box |
float | crease |
std::list< Hinge > | deads |
std::list< Hinge > | front |
StaticGrid | grid |
MESH & | mesh |
float | mindist |
std::vector< int > | nb |
float | radius |
Private Member Functions | |
void | addFace (int a, int b, int c) |
float | angle (Point3f p, Point3f q, Point3f &axis) |
bool | checkHinge (int v0, int v1) |
float | distance (int v0, int v1, Point3f ¢er) |
bool | findSphere (Point3f &p0, Point3f &p1, Point3f &p2, Point3f ¢er) |
unsigned int | getInSphere (vcg::Point3f &p, float distance, std::vector< int > &results, std::vector< float > &dists) |
bool | intersect (int v0, int v1, Point3f ¢er) |
void | killHinge (std::list< Hinge >::iterator e) |
void | moveBack (std::list< Hinge >::iterator e) |
void | moveFront (std::list< Hinge >::iterator e) |
std::list< Hinge >::iterator | newHinge (Hinge e) |
void | Pivot::cluster (int v) |
void | Pivot::detach (int v) |
bool | Pivot::glue (std::list< Hinge >::iterator a, std::list< Hinge >::iterator b) |
void | Pivot::trovamiunnome (std::list< Hinge >::iterator e) |
std::list< Hinge >::iterator | touches (int v, std::list< Hinge >::iterator e) |
typedef GridStaticPtr<typename MESH::VertexType, typename MESH::ScalarType > vcg::tri::Pivot< MESH >::StaticGrid |
vcg::tri::Pivot< MESH >::Pivot | ( | MESH & | _mesh, |
float | _radius, | ||
float | _mindist = 0.05 , |
||
float | _crease = -0.5 |
||
) | [inline] |
int vcg::tri::Pivot< MESH >::addFace | ( | ) | [inline] |
void vcg::tri::Pivot< MESH >::addFace | ( | int | a, |
int | b, | ||
int | c | ||
) | [inline, private] |
float vcg::tri::Pivot< MESH >::angle | ( | Point3f | p, |
Point3f | q, | ||
Point3f & | axis | ||
) | [inline, private] |
bool vcg::tri::Pivot< MESH >::checkHinge | ( | int | v0, |
int | v1 | ||
) | [inline, private] |
float vcg::tri::Pivot< MESH >::distance | ( | int | v0, |
int | v1, | ||
Point3f & | center | ||
) | [inline, private] |
bool vcg::tri::Pivot< MESH >::findSphere | ( | Point3f & | p0, |
Point3f & | p1, | ||
Point3f & | p2, | ||
Point3f & | center | ||
) | [inline, private] |
unsigned int vcg::tri::Pivot< MESH >::getInSphere | ( | vcg::Point3f & | p, |
float | distance, | ||
std::vector< int > & | results, | ||
std::vector< float > & | dists | ||
) | [inline, private] |
bool vcg::tri::Pivot< MESH >::intersect | ( | int | v0, |
int | v1, | ||
Point3f & | center | ||
) | [inline, private] |
void vcg::tri::Pivot< MESH >::killHinge | ( | std::list< Hinge >::iterator | e | ) | [inline, private] |
void vcg::tri::Pivot< MESH >::moveBack | ( | std::list< Hinge >::iterator | e | ) | [inline, private] |
void vcg::tri::Pivot< MESH >::moveFront | ( | std::list< Hinge >::iterator | e | ) | [inline, private] |
std::list<Hinge>::iterator vcg::tri::Pivot< MESH >::newHinge | ( | Hinge | e | ) | [inline, private] |
bool vcg::tri::Pivot< MESH >::pivot | ( | Hinge & | Hinge, |
int & | candidate, | ||
Point3f & | end_pivot, | ||
std::vector< int > & | targets | ||
) | [inline] |
void vcg::tri::Pivot< MESH >::Pivot::cluster | ( | int | v | ) | [inline, private] |
void vcg::tri::Pivot< MESH >::Pivot::detach | ( | int | v | ) | [inline, private] |
bool vcg::tri::Pivot< MESH >::Pivot::glue | ( | std::list< Hinge >::iterator | a, |
std::list< Hinge >::iterator | b | ||
) | [inline, private] |
void vcg::tri::Pivot< MESH >::Pivot::trovamiunnome | ( | std::list< Hinge >::iterator | e | ) | [inline, private] |
bool vcg::tri::Pivot< MESH >::seed | ( | bool | outside = true , |
int | start = -1 |
||
) | [inline] |
std::list<Hinge>::iterator vcg::tri::Pivot< MESH >::touches | ( | int | v, |
std::list< Hinge >::iterator | e | ||
) | [inline, private] |
Box3f vcg::tri::Pivot< MESH >::box |
float vcg::tri::Pivot< MESH >::crease |
std::list<Hinge> vcg::tri::Pivot< MESH >::deads |
std::list<Hinge> vcg::tri::Pivot< MESH >::front |
StaticGrid vcg::tri::Pivot< MESH >::grid |
MESH& vcg::tri::Pivot< MESH >::mesh |
float vcg::tri::Pivot< MESH >::mindist |
std::vector<int> vcg::tri::Pivot< MESH >::nb |
float vcg::tri::Pivot< MESH >::radius |