https://github.com/adshhzy/VIPSS
Revision 19e9e0f636c421901ec39d7608cc2fb69f486eb6 authored by adshhzy on 17 April 2019, 05:35:22 UTC, committed by adshhzy on 17 April 2019, 05:35:22 UTC
1 parent 50d6f74
Tip revision: 19e9e0f636c421901ec39d7608cc2fb69f486eb6 authored by adshhzy on 17 April 2019, 05:35:22 UTC
readme
readme
Tip revision: 19e9e0f
Polygonizer.h
/***** implicit.h */
/* header file for implicit surface polygonizer, implicit.c */
#ifndef IMPLICIT_HDR
#define IMPLICIT_HDR
#include <utils/Rn_Defs.H>
typedef struct { /* surface vertex */
R3Pt position;
R3Vec normal; /* position and surface normal */
} VERTEX;
typedef struct { /* list of vertices in polygonization */
int count, max; /* # vertices, max # allowed */
VERTEX *ptr; /* dynamically allocated */
} VERTICES;
#ifdef __cplusplus
extern "C" {
#endif
bool polygonize (
double (*function)(const R3Pt &in_pt),
double size,
int bounds,
const R3Pt &in_ptStart,
int (*triproc)(int i1, int i2, int i3, VERTICES vertices),
void (*vertproc)(VERTICES vertices)
);
/* see implicit.c for explanation of arguments */
#ifdef __cplusplus
}
#endif
#endif

Computing file changes ...