source: molecuilder/src/tesselationhelpers.hpp@ bb56cf

Last change on this file since bb56cf was bb56cf, checked in by Frederik Heber <heber@…>, 16 years ago

new function CalculateVolumeofGeneralTetraeder().

  • is used when a point is removed to evaluate the loss of volume in the envelope.
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[834ff3]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
13using namespace std;
14
15// include config.h
16#ifdef HAVE_CONFIG_H
17#include <config.h>
18#endif
19
20#include <gsl/gsl_linalg.h>
21#include <gsl/gsl_matrix.h>
22#include <gsl/gsl_multimin.h>
23#include <gsl/gsl_permutation.h>
24#include <gsl/gsl_vector.h>
25
[bb56cf]26#include "defs.hpp"
[834ff3]27#include "vector.hpp"
28
[bb56cf]29#define HULLEPSILON 1e-10
30
[48cd93]31double DetGet(gsl_matrix *A, int inPlace);
32void GetSphere(Vector *center, Vector &a, Vector &b, Vector &c, double RADIUS);
33void 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);
[834ff3]34void GetCenterofCircumcircle(Vector *Center, Vector *a, Vector *b, Vector *c);
35double GetPathLengthonCircumCircle(Vector &CircleCenter, Vector &CirclePlaneNormal, double CircleRadius, Vector &NewSphereCenter, Vector &OldSphereCenter, Vector &NormalVector, Vector &SearchDirection);
36double MinIntersectDistance(const gsl_vector * x, void *params);
37bool existsIntersection(Vector point1, Vector point2, Vector point3, Vector point4);
[bb56cf]38double CalculateVolumeofGeneralTetraeder(Vector *a, Vector *b, Vector *c, Vector *d);
39
[834ff3]40
41#endif /* TESSELATIONHELPERS_HPP_ */
Note: See TracBrowser for help on using the repository browser.