Doxygen Source Code Documentation
vp_shade.c File Reference
#include "vp_global.h"Go to the source code of this file.
| Defines | |
| #define | NORM_13 | 
| #define | NORM_N 44 | 
| #define | NORM_BITS 13 | 
| #define | MAX_NORMAL 7923 | 
| Functions | |
| void InitNormalTables | ANSI_ARGS ((void)) | 
| void | InitNormalTables () | 
| int | vpNormalIndex (nx, ny, nz) double nx | 
| Variables | |
| int | NormalTablesInitialized = 0 | 
| short * | NormalPy | 
| short | NormalPyStorage [1+2 *NORM_N] | 
| short * | NormalXLimit | 
| short | NormalXLimitStorage [1+2 *NORM_N] | 
| int | ny | 
| int | nz | 
| double * | nx | 
| int | length | 
| unsigned char * | scalar_data | 
| unsigned char * | scalar_minus_y | 
| unsigned char * | scalar_plus_y | 
| unsigned char * | scalar_minus_z | 
| unsigned char * | scalar_plus_z | 
| void * | voxel_data | 
| int | scalar_field | 
| int | grad_field | 
| int | norm_field | 
Define Documentation
| 
 | 
| 
 Definition at line 100 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 93 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 98 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 97 of file vp_shade.c. Referenced by InitNormalTables(). | 
Function Documentation
| 
 | 
| 
 | 
| 
 | 
| 
 Definition at line 128 of file vp_shade.c. References NORM_N, NormalPy, NormalPyStorage, NormalTablesInitialized, NormalXLimit, and NormalXLimitStorage. 
 00129 {
00130     int y, xcount, codepoint;
00131     int sum;
00132     double value;
00133 
00134     /* initialize NormalPy */
00135     xcount = 1;
00136     codepoint = 2;
00137     NormalPy = &NormalPyStorage[NORM_N];
00138     NormalXLimit = &NormalXLimitStorage[NORM_N];
00139     for (y = -NORM_N; y <= NORM_N; y++) {
00140         NormalPy[y] = codepoint + (((xcount-1)/2) << 1);
00141         codepoint += (xcount << 1);
00142         NormalXLimit[y] = (xcount-1)/2;
00143         if (y < 0)
00144             xcount += 2;
00145         else
00146             xcount -= 2;
00147     }
00148 
00149     NormalTablesInitialized = 1;
00150 }
 | 
| 
 | ||||||||||||||||
| 
 | 
Variable Documentation
| 
 | 
| 
 Definition at line 363 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 361 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 364 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 112 of file vp_shade.c. Referenced by InitNormalTables(). | 
| 
 | 
| 
 Definition at line 116 of file vp_shade.c. Referenced by InitNormalTables(). | 
| 
 | 
| 
 Definition at line 111 of file vp_shade.c. Referenced by InitNormalTables(). | 
| 
 | 
| 
 Definition at line 117 of file vp_shade.c. Referenced by InitNormalTables(). | 
| 
 | 
| 
 Definition at line 118 of file vp_shade.c. Referenced by InitNormalTables(). | 
| 
 | 
| 
 Definition at line 200 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 200 of file vp_shade.c. | 
| 
 | 
| 
 | 
| 
 Definition at line 360 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 362 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 253 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 255 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 254 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 256 of file vp_shade.c. | 
| 
 | 
| 
 Definition at line 257 of file vp_shade.c. | 
 
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             
 
 
 
 
       
	   
	   
	   
	  