MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
geometrylib.h
Go to the documentation of this file.
1 #ifndef MIDAS_GEOMETRYLIB_H
2 #define MIDAS_GEOMETRYLIB_H
3 
4 #include "gelib.h"
5 #include "mathlib.h"
6 #include "arrays.h"
7 
8 
15 namespace midaspace {
16 
20 int give_edge_points_commperpend_skewlines (const double *l1a, const double *l1b, const double *l2a, const double *l2b, double *p1, double *p2);
22 long intersec_rectangle3d_line (double zero,double norm,
23  const PoinT *A,const PoinT *B,const PoinT *C,const PoinT *D,
24  const PoinT *U,const PoinT *V,
25  double *ksi,double *eta,double *t,
26  PoinT *I1,PoinT *I2);
27 
28 long intersec_triangle_line (double zero, double norm,
29  const PoinT *A, const PoinT *B, const PoinT *C,
30  const PoinT *U, const PoinT *V,
31  double *ksi, double *eta, double *t,
32  PoinT *I1, PoinT *I2);
33 
34 long nc_brick_3d (double zero, double x[], double y[], double z[], const PoinT *point, PoinT *answer);
35 
36 double area3D_Polygon (int n, const PoinT **V, const VectoR *N);
37 int intersect_RayTriangle (double zero, const PoinT *P0, const PoinT *P1, const PoinT *V0, const PoinT *V1, const PoinT *V2, PoinT* I);
38 
39 
40 void jac_3d (double &jac, Dvctr &x,Dvctr &y,Dvctr &z,
41  double xi,double eta,double zeta);
42 
43 
44 } // namespace midaspace
45 
46 #endif // MIDAS_GEOMETRYLIB_H
General functions.
long intersec_triangle_line(double zero, double norm, const PoinT *A, const PoinT *B, const PoinT *C, const PoinT *U, const PoinT *V, double *ksi, double *eta, double *t, PoinT *I1, PoinT *I2)
int intersect_RayTriangle(double zero, const PoinT *P0, const PoinT *P1, const PoinT *V0, const PoinT *V1, const PoinT *V2, PoinT *I)
long nc_brick_3d(double zero, double x[], double y[], double z[], const PoinT *point, PoinT *answer)
Function computes natural coordinates of 'point' on 'element', 'point' is entered in cartesian coordi...
int give_edge_points_commperpend_skewlines(const double *l1a, const double *l1b, const double *l2a, const double *l2b, double *p1, double *p2)
*** *** *** *** GEOMETRY FUNCTIONS *** *** *** ***
Structs Elem3D, PoinT and VectoR; classes Array, Array1d, Xscal, Dscal, Xvctr, Lvctr, Dvctr, Xmtrx, Lmtrx and Dmtrx.
long intersec_rectangle3d_line(double zero, double norm, const PoinT *A, const PoinT *B, const PoinT *C, const PoinT *D, const PoinT *U, const PoinT *V, double *ksi, double *eta, double *t, PoinT *I1, PoinT *I2)
ZDROJE http://softsurfer.com/algorithm_archive.htm.
Definition: geometrylib.cpp:70
Mathematic functions.
double area3D_Polygon(int n, const PoinT **V, const VectoR *N)
************************** WWW.SOFTSURFER.COM ALGORITHMS ************************** Copyright 2000...
void jac_3d(double &jac, Dvctr &x, Dvctr &y, Dvctr &z, double xi, double eta, double zeta)