BALL::TriangulatedSphere Class Reference
[Molecular Surface Computation]

#include <BALL/STRUCTURE/triangulatedSurface.h>

Inheritance diagram for BALL::TriangulatedSphere:
BALL::TriangulatedSurface

List of all members.


Classes

struct  Face

Public Member Functions

Constructors and Destructors
 TriangulatedSphere ()
 TriangulatedSphere (const TriangulatedSphere &sphere, bool=true)
virtual ~TriangulatedSphere ()
Assignment
void set (const TriangulatedSphere &sphere, bool=true)
TriangulatedSphereoperator= (const TriangulatedSphere &sphere)

Accessors

void icosaeder (bool out=true)
void pentakisDodecaeder (bool out=true)
void refine (Position iterations, bool out=true)
void refine (bool out)
void buildFourTriangles (Face face, Triangle *face0, Triangle *face1, Triangle *face2, Triangle *face3)
void setIncidences ()

Detailed Description

Generic TriangulatedSphere Class.


Constructor & Destructor Documentation

BALL::TriangulatedSphere::TriangulatedSphere (  ) 

Default constructor. This method creates a new TriangulatedSphere object.

BALL::TriangulatedSphere::TriangulatedSphere ( const TriangulatedSphere sphere,
bool  = true 
)

Copy constructor. Create a new TriangulatedSphere object from another.

Parameters:
sphere the TriangulatedSphere object to be copied
bool ignored - just for interface consistency
virtual BALL::TriangulatedSphere::~TriangulatedSphere (  )  [virtual]

Destructor. Destructs the TriangulatedSphere object.


Member Function Documentation

void BALL::TriangulatedSphere::buildFourTriangles ( Face  face,
Triangle face0,
Triangle face1,
Triangle face2,
Triangle face3 
) [private]
void BALL::TriangulatedSphere::icosaeder ( bool  out = true  ) 

Build an icosaeder. If the TriangulatedSphere is not empty, it will be cleared first. The center of the icosaeder will be the origin, the radius will be 1.

Parameters:
out if out = true the normal vectors will be oriented outside, otherwise they will be oriented inside
TriangulatedSphere& BALL::TriangulatedSphere::operator= ( const TriangulatedSphere sphere  ) 

Assign from another TriangulatedSphere.

Parameters:
sphere the TriangulatedSphere object to assign from
void BALL::TriangulatedSphere::pentakisDodecaeder ( bool  out = true  ) 

Build a pentakis dodecaeder. If the TriangulatedSphere is not empty, it will be cleared first. The center of the dodecaeder will be the origin, the radius will be 1.

Parameters:
out if out = true the normal vectors will be oriented outside, otherwise they will be oriented inside
void BALL::TriangulatedSphere::refine ( bool  out  )  [private]
void BALL::TriangulatedSphere::refine ( Position  iterations,
bool  out = true 
)

Refine a triangulated sphere. The center of the sphere must be the origin, the radius must be 1.

Parameters:
iterations the number of refinement iterations
out the orientation of the normal vectors
void BALL::TriangulatedSphere::set ( const TriangulatedSphere sphere,
bool  = true 
)

Assign from another TriangulatedSphere.

Parameters:
sphere the TriangulatedSphere object to assign from
bool ignored - just for interface consistency
void BALL::TriangulatedSphere::setIncidences (  )  [private]