Voxvision  1
Creating and manipulating voxel octrees
Data Fields
vox_sphere Struct Reference

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...
 

Detailed Description

Sphere structure.

Spheres are objects which are held in M-tree.

Field Documentation

◆ color

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.

◆ sqr_radius

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.


The documentation for this struct was generated from the following file: