#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "rendermodes.h"
Defines | |
#define | MAXXSIZ |
#define | MAXYSIZ |
#define | MAXZSIZ |
#define | MAXVOXELS |
Functions | |
void | my_vox_hack (void) |
Postprocess .vox-files. | |
loadVOX (char *filename) | |
Load .vox-files. | |
void | extract_data (unsigned char *raw) |
Decompress .kvx-files. | |
unsigned char * | my_loadkvx (const char *filename) |
Load .kvx-files. | |
void | loadKVX (char *arg) |
Load .kvx-files Wrapper-function. | |
void | loadDAT (char *filename) |
Load .dat-files. | |
void | calculate_gradients (void) |
Calculate the gradients by "central-differences". | |
void | smooth_data (uint32_t *in, uint32_t mask, uint32_t shift) |
Smooth data. | |
void | create_mipmap (void) |
Create "3D-mipmap". | |
void | apply_cut_plane (float *plane_equ) |
Cut object with plane. | |
void | apply_cut_sphere (float *sphere_equ, int inside_outside_flag) |
Cut object with sphere. | |
Variables | |
unsigned char * | voxdat |
long * | xoffset |
short * | xyoffset |
uint32_t * | voxel |
int | vol_loaded |
int | alloced_voxdat |
float | cc [3] |
long | xpivot |
long | ypivot |
long | zpivot |
uint32_t | xsiz |
uint32_t | ysiz |
uint32_t | zsiz |
unsigned char * | rawslabdata |
|
Cut object with plane.
|
|
Cut object with sphere.
|
|
Calculate the gradients by "central-differences". Approximate normalvector for each voxel/cell by local gradient. |
|
Create "3D-mipmap". Create low-level mipmap for empty space skipping. |
|
Decompress .kvx-files.
|
|
Load .dat-files. Load the "native"-VisLU data-files.
|
|
Load .kvx-files Wrapper-function. KVX-fileformat invented by Ken Silverman http://www.advsys.net/ken Calls extract_data() on the actual load-procedure my_loadkvx()
|
|
Load .vox-files. VOX-fileformat invented by Ken Silverman http://www.advsys.net/ken
|
|
Load .kvx-files. KVX-fileformat invented by Ken Silverman http://www.advsys.net/ken
|
|
Smooth data.
|