BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members
BALL::SASTriangulator Class Reference

#include <BALL/STRUCTURE/triangulatedSAS.h>

Public Member Functions

Constructors and Destructors
 SASTriangulator ()
 
 SASTriangulator (TriangulatedSAS *tsas)
 
virtual ~SASTriangulator ()
 

Protected Attributes

Attributes
TriangulatedSAStsas_
 
double sqrt_density_
 
std::vector< std::list
< TVector3< double > > > 
edge_
 
HashMap< Size,
TriangulatedSurface
template_spheres_
 

Accessors

void run ()
 
void triangulateFace (SASFace *face)
 
void createPlanes (SASFace *face, std::list< std::pair< TPlane3< double >, double > > &planes)
 
void tagPoints (TriangulatedSurface &part, const std::list< std::pair< TPlane3< double >, double > > &planes)
 
void removeInsideTriangles (TriangulatedSurface &part)
 
HashGrid3< TrianglePoint * > createHashGrid (const TriangulatedSurface &part)
 
void createPoints (TriangulatedSurface &part, const std::list< std::pair< TPlane3< double >, double > > &planes, HashGrid3< TrianglePoint * > &grid)
 
void createNewTriangles (TriangulatedSurface &part, HashGrid3< TrianglePoint * > &grid)
 
void onePointOutside (Index outside, Triangle *t, TriangulatedSurface &part, HashGrid3< TrianglePoint * > &grid)
 
void twoPointsOutside (Position outside1, Position outside2, Triangle *t, TriangulatedSurface &part, HashGrid3< TrianglePoint * > &grid)
 
TrianglePointvertexExists (const TVector3< double > &point, HashGrid3< TrianglePoint * > &grid)
 
Size numberOfRefinements (const double &density, const double &radius)
 
void buildTemplateSpheres ()
 

Detailed Description

Generic SASTriangulator Class.

Definition at line 160 of file triangulatedSAS.h.

Constructor & Destructor Documentation

BALL::SASTriangulator::SASTriangulator ( )

Default constructor. This method creates a new SASTriangulator object.

BALL::SASTriangulator::SASTriangulator ( TriangulatedSAS tsas)

Detailed constructor. Create a new empty SASTriangulator object and set its SAS.

Parameters
tsasa pointer to the corresponding SAS
virtual BALL::SASTriangulator::~SASTriangulator ( )
virtual

Destructor. Destructs the SASTriangulator object.

Member Function Documentation

void BALL::SASTriangulator::buildTemplateSpheres ( )
private
HashGrid3<TrianglePoint*> BALL::SASTriangulator::createHashGrid ( const TriangulatedSurface part)
private
void BALL::SASTriangulator::createNewTriangles ( TriangulatedSurface part,
HashGrid3< TrianglePoint * > &  grid 
)
private
void BALL::SASTriangulator::createPlanes ( SASFace face,
std::list< std::pair< TPlane3< double >, double > > &  planes 
)
private
void BALL::SASTriangulator::createPoints ( TriangulatedSurface part,
const std::list< std::pair< TPlane3< double >, double > > &  planes,
HashGrid3< TrianglePoint * > &  grid 
)
private
Size BALL::SASTriangulator::numberOfRefinements ( const double density,
const double radius 
)
private
void BALL::SASTriangulator::onePointOutside ( Index  outside,
Triangle t,
TriangulatedSurface part,
HashGrid3< TrianglePoint * > &  grid 
)
private
void BALL::SASTriangulator::removeInsideTriangles ( TriangulatedSurface part)
private
void BALL::SASTriangulator::run ( )
void BALL::SASTriangulator::tagPoints ( TriangulatedSurface part,
const std::list< std::pair< TPlane3< double >, double > > &  planes 
)
private
void BALL::SASTriangulator::triangulateFace ( SASFace face)
private
void BALL::SASTriangulator::twoPointsOutside ( Position  outside1,
Position  outside2,
Triangle t,
TriangulatedSurface part,
HashGrid3< TrianglePoint * > &  grid 
)
private
TrianglePoint* BALL::SASTriangulator::vertexExists ( const TVector3< double > &  point,
HashGrid3< TrianglePoint * > &  grid 
)
private

Member Data Documentation

std::vector< std::list< TVector3<double> > > BALL::SASTriangulator::edge_
protected

Definition at line 244 of file triangulatedSAS.h.

double BALL::SASTriangulator::sqrt_density_
protected

Definition at line 242 of file triangulatedSAS.h.

HashMap<Size,TriangulatedSurface> BALL::SASTriangulator::template_spheres_
protected

Definition at line 246 of file triangulatedSAS.h.

TriangulatedSAS* BALL::SASTriangulator::tsas_
protected

Definition at line 240 of file triangulatedSAS.h.