source: src/lib/math/isosurf/implicit.h@ 52aacc

Last change on this file since 52aacc was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago

Initial commit based on 3.0.0alpha (here claimed as 2.4).

  • simply added all files.
  • Property mode set to 100644
File size: 856 bytes
Line 
1
2#ifndef _math_isosurf_implicit_h
3#define _math_isosurf_implicit_h
4
5typedef struct point { /* a three-dimensional point */
6 double x, y, z; /* its coordinates */
7} POINT;
8
9typedef struct vertex { /* surface vertex */
10 POINT position, normal; /* position and surface normal */
11} VERTEX;
12
13typedef struct vertices { /* list of vertices in polygonization */
14 int count, max; /* # vertices, max # allowed */
15 VERTEX *ptr; /* dynamically allocated */
16} VERTICES;
17
18#define TET 0 /* use tetrahedral decomposition */
19#define NOTET 1 /* no tetrahedral decomposition */
20
21extern "C" {
22 char * polygonize(double(*function)(double,double,double),
23 double size, int bounds,
24 double x, double y, double z,
25 int(*triproc)(int,int,int,VERTICES), int mode);
26}
27
28#endif
Note: See TracBrowser for help on using the repository browser.