| # | Line 147 | Line 147 | rayclear( /* clear a ray for (re)evaluation */ | |
|---|---|---|
| 147 | r->rox = NULL; | |
| 148 | r->rxt = r->rmt = r->rot = FHUGE; | |
| 149 | r->pert[0] = r->pert[1] = r->pert[2] = 0.0; | |
| 150 | + | r->rflips = 0; |
| 151 | r->uv[0] = r->uv[1] = 0.0; | |
| 152 | setcolor(r->pcol, 1.0, 1.0, 1.0); | |
| 153 | setcolor(r->mcol, 0.0, 0.0, 0.0); | |
| # | Line 509 | Line 510 | flipsurface( /* reverse surface orientation */ | |
| 510 | r->pert[0] = -r->pert[0]; | |
| 511 | r->pert[1] = -r->pert[1]; | |
| 512 | r->pert[2] = -r->pert[2]; | |
| 513 | + | r->rflips++; |
| 514 | } | |
| 515 | ||
| 516 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |