Candidate_v1.7.0
        stable
      
      
      
| Rev | Line |  | 
|---|
| [0b990d] | 1 |  | 
|---|
|  | 2 | #ifndef _math_isosurf_implicit_h | 
|---|
|  | 3 | #define _math_isosurf_implicit_h | 
|---|
|  | 4 |  | 
|---|
|  | 5 | typedef struct point {             /* a three-dimensional point */ | 
|---|
|  | 6 | double x, y, z;                /* its coordinates */ | 
|---|
|  | 7 | } POINT; | 
|---|
|  | 8 |  | 
|---|
|  | 9 | typedef struct vertex {            /* surface vertex */ | 
|---|
|  | 10 | POINT position, normal;        /* position and surface normal */ | 
|---|
|  | 11 | } VERTEX; | 
|---|
|  | 12 |  | 
|---|
|  | 13 | typedef 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 |  | 
|---|
|  | 21 | extern "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.