/* * TesselationHelpers.hpp * * Auxiliary functions for the tesselation. * * Created on: Aug 3, 2009 * Author: heber */ #ifndef TESSELATIONHELPERS_HPP_ #define TESSELATIONHELPERS_HPP_ using namespace std; // include config.h #ifdef HAVE_CONFIG_H #include #endif #define HULLEPSILON 1e-7 #include #include #include #include #include #include "vector.hpp" double det_get(gsl_matrix *A, int inPlace); void get_sphere(Vector *center, Vector &a, Vector &b, Vector &c, double RADIUS); void Get_center_of_sphere(Vector* Center, Vector a, Vector b, Vector c, Vector *NewUmkreismittelpunkt, Vector* Direction, Vector* AlternativeDirection, double HalfplaneIndicator, double AlternativeIndicator, double alpha, double beta, double gamma, double RADIUS, double Umkreisradius); void GetCenterofCircumcircle(Vector *Center, Vector *a, Vector *b, Vector *c); double GetPathLengthonCircumCircle(Vector &CircleCenter, Vector &CirclePlaneNormal, double CircleRadius, Vector &NewSphereCenter, Vector &OldSphereCenter, Vector &NormalVector, Vector &SearchDirection); double MinIntersectDistance(const gsl_vector * x, void *params); bool existsIntersection(Vector point1, Vector point2, Vector point3, Vector point4); //bool Choose_preferable_third_point(atom *Candidate, atom *OptCandidate, class BoundaryLineSet *BaseLine, atom *ThirdNode, Tesselation *Tess); #endif /* TESSELATIONHELPERS_HPP_ */