https://github.com/adshhzy/VIPSS
Tip revision: 2717c4ad8edd0fc8552b437512b165a14185b617 authored by adshhzy on 27 March 2020, 01:18:20 UTC
Delete deprecated code in surfacer
Delete deprecated code in surfacer
Tip revision: 2717c4a
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
