* If two nodes can see each other, the matrix entry is the distance
* between them.
*/
-static void compVis(vconfig_t * conf, int start)
-{
+static void compVis(vconfig_t * conf) {
int V = conf->N;
Ppoint_t *pts = conf->P;
int *nextPt = conf->next;
int j, i, previ;
COORD d;
- for (i = start; i < V; i++) {
+ for (i = 0; i < V; i++) {
/* add edge between i and previ.
* Note that this works for the cases of polygons of 1 and 2
* vertices, though needless work is done.
void visibility(vconfig_t * conf)
{
conf->vis = allocArray(conf->N, 2);
- compVis(conf, 0);
+ compVis(conf);
}
/* polyhit: