1 | /*
|
---|
2 | * TesselationHelpers.hpp
|
---|
3 | *
|
---|
4 | * Auxiliary functions for the tesselation.
|
---|
5 | *
|
---|
6 | * Created on: Aug 3, 2009
|
---|
7 | * Author: heber
|
---|
8 | */
|
---|
9 |
|
---|
10 | #ifndef TESSELATIONHELPERS_HPP_
|
---|
11 | #define TESSELATIONHELPERS_HPP_
|
---|
12 |
|
---|
13 | using namespace std;
|
---|
14 |
|
---|
15 | // include config.h
|
---|
16 | #ifdef HAVE_CONFIG_H
|
---|
17 | #include <config.h>
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | #define HULLEPSILON 1e-7
|
---|
21 |
|
---|
22 | #include <gsl/gsl_linalg.h>
|
---|
23 | #include <gsl/gsl_matrix.h>
|
---|
24 | #include <gsl/gsl_multimin.h>
|
---|
25 | #include <gsl/gsl_permutation.h>
|
---|
26 | #include <gsl/gsl_vector.h>
|
---|
27 |
|
---|
28 | #include "vector.hpp"
|
---|
29 |
|
---|
30 | double DetGet(gsl_matrix *A, int inPlace);
|
---|
31 | void GetSphere(Vector *center, Vector &a, Vector &b, Vector &c, double RADIUS);
|
---|
32 | void GetCenterOfSphere(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);
|
---|
33 | void GetCenterofCircumcircle(Vector *Center, Vector *a, Vector *b, Vector *c);
|
---|
34 | double GetPathLengthonCircumCircle(Vector &CircleCenter, Vector &CirclePlaneNormal, double CircleRadius, Vector &NewSphereCenter, Vector &OldSphereCenter, Vector &NormalVector, Vector &SearchDirection);
|
---|
35 | double MinIntersectDistance(const gsl_vector * x, void *params);
|
---|
36 | bool existsIntersection(Vector point1, Vector point2, Vector point3, Vector point4);
|
---|
37 |
|
---|
38 | #endif /* TESSELATIONHELPERS_HPP_ */
|
---|