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

#include <ball_pivoting.h>

Inheritance diagram for vcg::tri::BallPivoting< MESH >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef MESH::FaceType FaceType
typedef MESH::VertexType::CoordType Point3x
typedef MESH::ScalarType ScalarType
typedef GridStaticPtr
< typename MESH::VertexType,
typename MESH::ScalarType
StaticGrid
typedef MESH::VertexIterator VertexIterator
typedef MESH::VertexType VertexType

Public Member Functions

 BallPivoting (MESH &_mesh, float _radius=0, float minr=0.2, float angle=M_PI/2)
int Place (FrontEdge &edge, typename AdvancingFront< MESH >::ResultIterator &touch)
ScalarType radi ()
bool Seed (int &v0, int &v1, int &v2)
 ~BallPivoting ()

Public Attributes

float max_angle
float max_edge
float min_edge
float radius

Private Member Functions

ScalarType Angle (Point3x p, Point3x q, Point3x &axis)
bool FindSphere (Point3x &p0, Point3x &p1, Point3x &p2, Point3x &center)
void Mark (VertexType *v)

Private Attributes

Point3x baricenter
StaticGrid grid
int last_seed
int usedBit

Detailed Description

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

Definition at line 7 of file ball_pivoting.h.


Member Typedef Documentation

template<class MESH>
typedef MESH::FaceType vcg::tri::BallPivoting< MESH >::FaceType

Reimplemented from vcg::tri::AdvancingFront< MESH >.

Definition at line 8 of file ball_pivoting.h.

template<class MESH>
typedef MESH::VertexType::CoordType vcg::tri::BallPivoting< MESH >::Point3x

Reimplemented from vcg::tri::AdvancingFront< MESH >.

Definition at line 11 of file ball_pivoting.h.

template<class MESH>
typedef MESH::ScalarType vcg::tri::BallPivoting< MESH >::ScalarType

Reimplemented from vcg::tri::AdvancingFront< MESH >.

Definition at line 9 of file ball_pivoting.h.

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

Definition at line 12 of file ball_pivoting.h.

template<class MESH>
typedef MESH::VertexIterator vcg::tri::BallPivoting< MESH >::VertexIterator

Definition at line 10 of file ball_pivoting.h.

template<class MESH>
typedef MESH::VertexType vcg::tri::BallPivoting< MESH >::VertexType

Reimplemented from vcg::tri::AdvancingFront< MESH >.

Definition at line 7 of file ball_pivoting.h.


Constructor & Destructor Documentation

template<class MESH>
vcg::tri::BallPivoting< MESH >::BallPivoting ( MESH &  _mesh,
float  _radius = 0,
float  minr = 0.2,
float  angle = M_PI/2 
) [inline]

Definition at line 25 of file ball_pivoting.h.

template<class MESH>
vcg::tri::BallPivoting< MESH >::~BallPivoting (  )  [inline]

Definition at line 79 of file ball_pivoting.h.


Member Function Documentation

template<class MESH>
ScalarType vcg::tri::BallPivoting< MESH >::Angle ( Point3x  p,
Point3x  q,
Point3x axis 
) [inline, private]

Definition at line 383 of file ball_pivoting.h.

template<class MESH>
bool vcg::tri::BallPivoting< MESH >::FindSphere ( Point3x p0,
Point3x p1,
Point3x p2,
Point3x center 
) [inline, private]

Definition at line 332 of file ball_pivoting.h.

template<class MESH>
void vcg::tri::BallPivoting< MESH >::Mark ( VertexType v  )  [inline, private]

Definition at line 393 of file ball_pivoting.h.

template<class MESH>
int vcg::tri::BallPivoting< MESH >::Place ( FrontEdge edge,
typename AdvancingFront< MESH >::ResultIterator touch 
) [inline]

Definition at line 190 of file ball_pivoting.h.

template<class MESH>
ScalarType vcg::tri::BallPivoting< MESH >::radi (  )  [inline, virtual]

Reimplemented from vcg::tri::AdvancingFront< MESH >.

Definition at line 20 of file ball_pivoting.h.

template<class MESH>
bool vcg::tri::BallPivoting< MESH >::Seed ( int &  v0,
int &  v1,
int &  v2 
) [inline, virtual]

Implements vcg::tri::AdvancingFront< MESH >.

Definition at line 83 of file ball_pivoting.h.


Member Data Documentation

template<class MESH>
Point3x vcg::tri::BallPivoting< MESH >::baricenter [private]

Definition at line 324 of file ball_pivoting.h.

template<class MESH>
StaticGrid vcg::tri::BallPivoting< MESH >::grid [private]

Definition at line 326 of file ball_pivoting.h.

template<class MESH>
int vcg::tri::BallPivoting< MESH >::last_seed [private]

Definition at line 322 of file ball_pivoting.h.

template<class MESH>
float vcg::tri::BallPivoting< MESH >::max_angle

Definition at line 17 of file ball_pivoting.h.

template<class MESH>
float vcg::tri::BallPivoting< MESH >::max_edge

Definition at line 16 of file ball_pivoting.h.

template<class MESH>
float vcg::tri::BallPivoting< MESH >::min_edge

Definition at line 15 of file ball_pivoting.h.

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

Definition at line 14 of file ball_pivoting.h.

template<class MESH>
int vcg::tri::BallPivoting< MESH >::usedBit [private]

Definition at line 323 of file ball_pivoting.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:29 2013