Voxvision
1
Creating and manipulating voxel octrees
|
Sphere structure. More...
#include <mtree.h>
Data Fields | |
vox_dot | center |
Center of the sphere. | |
vox_dot | color |
Color of the sphere. More... | |
float | radius |
Radius of the sphere. | |
float | sqr_radius |
Square of the sphere's radius. More... | |
Sphere structure.
Spheres are objects which are held in M-tree.
vox_dot vox_sphere::color |
Color of the sphere.
It would be better to hold arbitrary userdata here. But for now color is the only useful "userdata" I can use. So I hardcoded this type in declaration of this structure.
float vox_sphere::sqr_radius |
Square of the sphere's radius.
This field is set by voxrnd library and can be completely ignored by user.