23 #define ALLOC(size,ptr,type) (ptr? (type*)realloc(ptr,(size)*sizeof(type)):(type*)malloc((size)*sizeof(type)))
32 for (i = 0; i < argpoly.
pn; i++)
33 rv.
ps[i] = argpoly.
ps[i];
56 for (i = 0; i < npolys; i++)
59 bar = malloc(n *
sizeof(
Pedge_t));
62 for (i = 0; i < npolys; i++) {
64 for (j = 0; j < pp.
pn; j++) {
87 int npts = 4 + 3*(line.
pn-2);
95 ispline[j+1] = ispline[j] = line.
ps[i];
98 for (; i < line.
pn-1; i++) {
99 ispline[j+2] = ispline[j+1] = ispline[j] = line.
ps[i];
102 ispline[j+1] = ispline[j] = line.
ps[i];
void make_polyline(Ppolyline_t line, Ppolyline_t *sline)
int Ppolybarriers(Ppoly_t **polys, int npolys, Pedge_t **barriers, int *n_barriers)
void freePath(Ppolyline_t *p)
#define ALLOC(size, ptr, type)
Ppoly_t copypoly(Ppoly_t)