Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

TriangulatedSphere Class Reference
[Molecular Surface Computation]

Generic TriangulatedSphere Class. More...

#include <triangulatedSurface.h>

Inheritance diagram for TriangulatedSphere:

TriangulatedSurface List of all members.

Accessors

void icosaeder (bool out=true)
 Build an icosaeder.
void refine (Position iterations, bool out=true)
 Refine a triangulated sphere.

Public Member Functions

Constructors and Destructors
 TriangulatedSphere () throw ()
 Default constructor.
 TriangulatedSphere (const TriangulatedSphere &sphere, bool=true) throw ()
 Copy constructor.
virtual ~TriangulatedSphere () throw ()
 Destructor.
Assignment
void set (const TriangulatedSphere &sphere, bool=true) throw ()
 Assign from another TriangulatedSphere.
TriangulatedSphereoperator= (const TriangulatedSphere &sphere) throw ()
 Assign from another TriangulatedSphere.

Detailed Description

Generic TriangulatedSphere Class.


Constructor & Destructor Documentation

TriangulatedSphere::TriangulatedSphere  )  throw ()
 

Default constructor.

This method creates a new TriangulatedSphere object.

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

Copy constructor.

Create a new TriangulatedSphere object from another.

Parameters:
sphere the TriangulatedSphere object to be copied
bool ignored - just for interface consistency

virtual TriangulatedSphere::~TriangulatedSphere  )  throw () [virtual]
 

Destructor.

Destructs the TriangulatedSphere object.


Member Function Documentation

void 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& TriangulatedSphere::operator= const TriangulatedSphere sphere  )  throw ()
 

Assign from another TriangulatedSphere.

Parameters:
sphere the TriangulatedSphere object to assign from

void 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 TriangulatedSphere::set const TriangulatedSphere sphere,
bool  = true
throw ()
 

Assign from another TriangulatedSphere.

Parameters:
sphere the TriangulatedSphere object to assign from
bool ignored - just for interface consistency