Make your own free website on Tripod.com

Contents Turbed: A Turbulent Behavior Development System News
In file gluo.h:

void gluoSphere2VoxLDDA(int radius, int *length, int* xlist[], int* ylist[], int* zlist[], int *allocfunc(int size))

Creates a voxel list representing a sphere using bresenham/mid-point

Documentation

Creates a voxel list representing a sphere using bresenham/mid-point.

On return, N is the number of points in the sphere and (x[i],y[i],z[i]), 0 <= i < N, are the points in the sphere.

Parameters description:

radius Sphere radius, (int)radius*2+1=size of the equivalent grid
length length of the generated voxel list
xlist X values for the voxel list
ylist Y values for the voxel list
zlist Z xvalues for the voxel list
allocfunc function to allocate the memory for the lists

Alphabetic index HTML hierarchy of classes or Java


This software was originally written by Daniel Barrero at the IRIT's Equipe Synthèse d'Images
contact: barrero@irit.fr

Generated by doc++