2
#include "ply_to_cll.h"
3
#define START_ROW xy[incr].row
4
#define STOP_ROW xy[incr+1].row
5
#define START_COL xy[incr].col
6
#define STOP_COL xy[incr+1].col
8
void save_area(struct element *xy, int num_points, int category)
11
float first_cell, last_cell;
13
for (incr = 0; incr < num_points;) {
15
if (START_ROW != STOP_ROW) {
16
fprintf(stderr, "ERROR: start and end row not same\n");
17
for (incr = 0; incr < num_points; incr += 2) {
18
fprintf(stderr, "%d: %d %f %d %f\n",
19
incr, xy[incr].row, xy[incr].col,
20
xy[incr + 1].row, xy[incr + 1].col);
26
first_cell = START_COL + 1.;
28
if (last_cell >= first_cell)
29
write_record(START_ROW, first_cell, last_cell, category);