Public Member Functions | |
void | std_init (const char *params="") |
TrefoilTorusAnneal (const char *params="") | |
bool | stop () |
void | best_found () |
float | energy () |
Public Attributes | |
int | N |
float | xoffset |
float | tilt |
vector< float > | angles |
void TrefoilTorusAnneal::std_init | ( | const char * | params = "" |
) | [inline] |
params - like BasicAnneal. Addionally N - Number of angles tilt - Torus tilt angle xoffset - Distance from z-Axis in x direction
Reimplemented from BasicAnneal.
References BasicAnneal::std_init().
bool TrefoilTorusAnneal::stop | ( | ) | [inline, virtual] |
Reimplemented stop criterion.
Reimplemented from BasicAnneal.
void TrefoilTorusAnneal::best_found | ( | ) | [inline, virtual] |
This gets called each time anneal finds a new best energy.
Reimplemented from BasicAnneal.
References BasicAnneal::best_found().
float TrefoilTorusAnneal::energy | ( | ) | [inline, virtual] |
Build PKF curve and compute its thickness with the parameters for the 3 torii.
Reimplemented from BasicAnneal.
References Curve< Vector >::append(), Curve< Vector >::computeTangents(), Curve< Vector >::length(), Curve< Vector >::link(), Curve< Vector >::nodes(), Curve< Vector >::rotAroundAxis(), Curve< Vector >::thickness(), and Curve< Vector >::writePKF().