Contents | Turbed: A Turbulent Behavior Development System | News |
Creates a voxel list representing a sphere using bresenham/mid-point
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
Generated by doc++