| 1 |
+ |
/* Copyright (c) 1991 Regents of the University of California */ |
| 2 |
+ |
|
| 3 |
|
#ifndef lint |
| 4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
| 5 |
|
#endif |
| 31 |
|
Display *theDisplay = NULL; /* connection to server */ |
| 32 |
|
|
| 33 |
|
struct node { /* ray tree node */ |
| 34 |
< |
double ipt[2]; |
| 34 |
> |
FVECT ipt; |
| 35 |
|
struct node *sister; |
| 36 |
|
struct node *daughter; |
| 37 |
|
}; |
| 153 |
|
|
| 154 |
|
|
| 155 |
|
strtoipt(ipt, str) /* convert string x y z to image point */ |
| 156 |
< |
double ipt[2]; |
| 156 |
> |
FVECT ipt; |
| 157 |
|
char *str; |
| 158 |
|
{ |
| 159 |
|
FVECT pt; |
| 160 |
|
|
| 161 |
|
if (sscanf(str, "%lf %lf %lf", &pt[0], &pt[1], &pt[2]) != 3) |
| 162 |
|
return(-1); |
| 163 |
< |
viewpixel(&ipt[0], &ipt[1], NULL, &ourview, pt); |
| 163 |
> |
viewloc(ipt, &ourview, pt); |
| 164 |
|
return(0); |
| 165 |
|
} |
| 166 |
|
|