59#define BN_VERT_TREE_TYPE_VERTS 1
60#define BN_VERT_TREE_TYPE_VERTS_AND_NORMS 2
62#define BN_CK_VERT_TREE(_p) BU_CKMAG(_p, BN_VERT_TREE_MAGIC, "vert_tree")
Header file for the BRL-CAD common definitions.
void bg_vert_tree_destroy(struct bg_vert_tree *tree)
Routine to free a vertex tree and all associated dynamic memory.
struct bg_vert_tree * bg_vert_tree_create_w_norms(void)
routine to create a vertex tree.
size_t bg_vert_tree_add(struct bg_vert_tree *tree, double x, double y, double z, fastf_t local_tol_sq)
Routine to add a vertex to the current list of part vertices. The array is re-alloc'd if needed....
struct bg_vert_tree * bg_vert_tree_create(void)
routine to create a vertex tree.
size_t bg_vert_tree_add_w_norm(struct bg_vert_tree *tree, double x, double y, double z, double nx, double ny, double nz, fastf_t local_tol_sq)
Routine to add a vertex and a normal to the current list of part vertices. The array is re-alloc'd if...
void bg_vert_tree_clean(struct bg_vert_tree *tree)
Routine to free the binary search tree and reset the current number of vertices. The vertex array is ...
void float float float * z
double fastf_t
fastest 64-bit (or larger) floating point type
Global registry of recognized magic numbers.
fastf_t * the_array
the array of vertices
int tree_type
vertices or vertices with normals
size_t max_vert
the current maximum capacity of the array
size_t curr_vert
the number of vertices currently in the array
union vert_tree * the_tree
the actual vertex tree
fundamental vector, matrix, quaternion math macros