Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
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 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)
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

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

Private Attributes

Point3x baricenter
int last_seed
KdTree< ScalarType > * tree
int usedBit

Detailed Description

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

Definition at line 19 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 22 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 25 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 23 of file ball_pivoting.h.

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

Definition at line 24 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 21 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 37 of file ball_pivoting.h.

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

Definition at line 77 of file ball_pivoting.h.


Member Function Documentation

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

Definition at line 334 of file ball_pivoting.h.

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

Definition at line 395 of file ball_pivoting.h.

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

Definition at line 385 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 195 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 82 of file ball_pivoting.h.


Member Data Documentation

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

Definition at line 327 of file ball_pivoting.h.

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

Definition at line 325 of file ball_pivoting.h.

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

Definition at line 30 of file ball_pivoting.h.

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

Definition at line 29 of file ball_pivoting.h.

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

Definition at line 28 of file ball_pivoting.h.

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

Definition at line 27 of file ball_pivoting.h.

template<class MESH>
KdTree<ScalarType>* vcg::tri::BallPivoting< MESH >::tree [private]

Definition at line 328 of file ball_pivoting.h.

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

Definition at line 326 of file ball_pivoting.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:41:57