| 1 |
– |
/* Copyright (c) 1988 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* o_instance.c - routines for creating octrees for other octrees. |
| 6 |
|
* |
| 11 |
|
|
| 12 |
|
#include "object.h" |
| 13 |
|
|
| 14 |
+ |
#include "octree.h" |
| 15 |
+ |
|
| 16 |
|
#include "instance.h" |
| 17 |
|
|
| 18 |
|
#include "plocate.h" |
| 65 |
|
if (i & 1<<j) |
| 66 |
|
v1[j] += cu->cusize; |
| 67 |
|
} |
| 68 |
< |
multp3(v2, v1, in->b.xfm); |
| 68 |
> |
multp3(v2, v1, in->x.b.xfm); |
| 69 |
|
if (j = plocate(v2, cumin, cumax)) |
| 70 |
|
vout++; |
| 71 |
|
vloc &= j; |
| 86 |
|
if (i & 1<<j) |
| 87 |
|
v1[j] += in->obj->scube.cusize; |
| 88 |
|
} |
| 89 |
< |
multp3(vert[i], v1, in->f.xfm); |
| 89 |
> |
multp3(vert[i], v1, in->x.f.xfm); |
| 90 |
|
if (j = plocate(vert[i], cumin, cumax)) |
| 91 |
|
vloc &= j; |
| 92 |
|
else |