vcg::tri::Pivot< MESH > Class Template Reference

#include <pivot.h>

List of all members.

Public Types

typedef GridStaticPtr
< typename MESH::VertexType,
typename MESH::ScalarType
StaticGrid

Public Member Functions

int addFace ()
bool pivot (Hinge &Hinge, int &candidate, Point3f &end_pivot, std::vector< int > &targets)
 Pivot (MESH &_mesh, float _radius, float _mindist=0.05, float _crease=-0.5)
bool seed (bool outside=true, int start=-1)

Public Attributes

Box3f box
float crease
std::list< Hingedeads
std::list< Hingefront
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 &center)
bool findSphere (Point3f &p0, Point3f &p1, Point3f &p2, Point3f &center)
unsigned int getInSphere (vcg::Point3f &p, float distance, std::vector< int > &results, std::vector< float > &dists)
bool intersect (int v0, int v1, Point3f &center)
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)

Detailed Description

template<class MESH>
class vcg::tri::Pivot< MESH >

Definition at line 35 of file pivot.h.


Member Typedef Documentation

template<class MESH >
typedef GridStaticPtr<typename MESH::VertexType, typename MESH::ScalarType > vcg::tri::Pivot< MESH >::StaticGrid

Definition at line 38 of file pivot.h.


Constructor & Destructor Documentation

template<class MESH >
vcg::tri::Pivot< MESH >::Pivot ( MESH &  _mesh,
float  _radius,
float  _mindist = 0.05,
float  _crease = -0.5 
) [inline]

Definition at line 63 of file pivot.h.


Member Function Documentation

template<class MESH >
void vcg::tri::Pivot< MESH >::addFace ( int  a,
int  b,
int  c 
) [inline, private]

Definition at line 587 of file pivot.h.

template<class MESH >
int vcg::tri::Pivot< MESH >::addFace (  )  [inline]

Definition at line 185 of file pivot.h.

template<class MESH >
float vcg::tri::Pivot< MESH >::angle ( Point3f  p,
Point3f  q,
Point3f axis 
) [inline, private]

Definition at line 577 of file pivot.h.

template<class MESH >
bool vcg::tri::Pivot< MESH >::checkHinge ( int  v0,
int  v1 
) [inline, private]

Definition at line 508 of file pivot.h.

template<class MESH >
float vcg::tri::Pivot< MESH >::distance ( int  v0,
int  v1,
Point3f center 
) [inline, private]

Definition at line 612 of file pivot.h.

template<class MESH >
bool vcg::tri::Pivot< MESH >::findSphere ( Point3f p0,
Point3f p1,
Point3f p2,
Point3f center 
) [inline, private]

Definition at line 637 of file pivot.h.

template<class MESH >
unsigned int vcg::tri::Pivot< MESH >::getInSphere ( vcg::Point3f p,
float  distance,
std::vector< int > &  results,
std::vector< float > &  dists 
) [inline, private]

Definition at line 622 of file pivot.h.

template<class MESH >
bool vcg::tri::Pivot< MESH >::intersect ( int  v0,
int  v1,
Point3f center 
) [inline, private]

Definition at line 603 of file pivot.h.

template<class MESH >
void vcg::tri::Pivot< MESH >::killHinge ( std::list< Hinge >::iterator  e  )  [inline, private]

Definition at line 496 of file pivot.h.

template<class MESH >
void vcg::tri::Pivot< MESH >::moveBack ( std::list< Hinge >::iterator  e  )  [inline, private]

Definition at line 501 of file pivot.h.

template<class MESH >
void vcg::tri::Pivot< MESH >::moveFront ( std::list< Hinge >::iterator  e  )  [inline, private]

Definition at line 505 of file pivot.h.

template<class MESH >
std::list<Hinge>::iterator vcg::tri::Pivot< MESH >::newHinge ( Hinge  e  )  [inline, private]

Definition at line 492 of file pivot.h.

template<class MESH >
bool vcg::tri::Pivot< MESH >::pivot ( Hinge Hinge,
int &  candidate,
Point3f end_pivot,
std::vector< int > &  targets 
) [inline]

Definition at line 399 of file pivot.h.

template<class MESH >
void vcg::tri::Pivot< MESH >::Pivot::cluster ( int  v  )  [inline, private]

Definition at line 530 of file pivot.h.

template<class MESH >
void vcg::tri::Pivot< MESH >::Pivot::detach ( int  v  )  [inline, private]

Definition at line 567 of file pivot.h.

template<class MESH >
bool vcg::tri::Pivot< MESH >::Pivot::glue ( std::list< Hinge >::iterator  a,
std::list< Hinge >::iterator  b 
) [inline, private]

Definition at line 553 of file pivot.h.

template<class MESH >
void vcg::tri::Pivot< MESH >::Pivot::trovamiunnome ( std::list< Hinge >::iterator  e  )  [inline, private]

Definition at line 547 of file pivot.h.

template<class MESH >
bool vcg::tri::Pivot< MESH >::seed ( bool  outside = true,
int  start = -1 
) [inline]

Definition at line 87 of file pivot.h.

template<class MESH >
std::list<Hinge>::iterator vcg::tri::Pivot< MESH >::touches ( int  v,
std::list< Hinge >::iterator  e 
) [inline, private]

Definition at line 666 of file pivot.h.


Member Data Documentation

template<class MESH >
Box3f vcg::tri::Pivot< MESH >::box

Definition at line 45 of file pivot.h.

template<class MESH >
float vcg::tri::Pivot< MESH >::crease

Definition at line 44 of file pivot.h.

template<class MESH >
std::list<Hinge> vcg::tri::Pivot< MESH >::deads

Definition at line 57 of file pivot.h.

template<class MESH >
std::list<Hinge> vcg::tri::Pivot< MESH >::front

Definition at line 56 of file pivot.h.

template<class MESH >
StaticGrid vcg::tri::Pivot< MESH >::grid

Definition at line 48 of file pivot.h.

template<class MESH >
MESH& vcg::tri::Pivot< MESH >::mesh

Definition at line 47 of file pivot.h.

template<class MESH >
float vcg::tri::Pivot< MESH >::mindist

Definition at line 43 of file pivot.h.

template<class MESH >
std::vector<int> vcg::tri::Pivot< MESH >::nb

Definition at line 58 of file pivot.h.

template<class MESH >
float vcg::tri::Pivot< MESH >::radius

Definition at line 42 of file pivot.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:34 2013