24#ifndef RT_SPACE_PARTITION_H
25#define RT_SPACE_PARTITION_H
79#define CUTTER_NULL ((union cutter *)0)
104struct bvh_build_node;
105RT_EXPORT
extern struct bvh_build_node *
107 const fastf_t *bounds_prims,
long *total_nodes,
108 const long n_primitives,
long **ordered_prims);
120 const struct rt_i *rtip);
139struct clt_bvh_bounds {
140 cl_double p_min[3], p_max[3];
143struct clt_linear_bvh_node {
144 struct clt_bvh_bounds bounds;
146 cl_int primitives_offset;
147 cl_int second_child_offset;
149 cl_ushort n_primitives;
156clt_linear_bvh_create(
long n_primitives,
struct clt_linear_bvh_node **nodes_p,
157 long **ordered_prims,
const fastf_t *centroids_prims,
158 const fastf_t *bounds_prims, cl_int *total_nodes);
Header file for the BRL-CAD common definitions.
double fastf_t
fastest 64-bit (or larger) floating point type
void rt_cut_clean(struct rt_i *rtip)
struct bvh_build_node * hlbvh_create(long max_prims_in_node, struct bu_pool *pool, const fastf_t *centroids_prims, const fastf_t *bounds_prims, long *total_nodes, const long n_primitives, long **ordered_prims)
void rt_pr_cut_info(const struct rt_i *rtip, const char *str)
void rt_cut_extend(union cutter *cutp, struct soltab *stp, const struct rt_i *rtip)
const union cutter * rt_cell_n_on_ray(struct application *ap, int n)
void rt_pr_cut(const union cutter *cutp, int lvl)
void insert_in_bsp(struct soltab *stp, union cutter *cutp)
void remove_from_bsp(struct soltab *stp, union cutter *cutp, struct bn_tol *tol)
void fill_out_bsp(struct rt_i *rtip, union cutter *cutp, struct resource *resp, fastf_t bb[6])
struct rt_piecelist * bn_piecelist
[] solids with pieces
struct soltab ** bn_list
bn_list[bn_len]
size_t bn_len
# of solids in list
size_t bn_maxpiecelen
# of piecelists allocated
size_t bn_maxlen
# of ptrs allocated to list
size_t bn_piecelen
# of piecelists used
fastf_t cn_point
cut through axis==point
int cn_axis
0, 1, 2 = cut along X, Y, Z
union cutter * cn_r
val >= point
union cutter * cn_l
val < point
union cutter * cut_forw
Freelist forward link.
fundamental vector, matrix, quaternion math macros