4 #include <cgmath/cgmath.h>
26 struct triangle *faces;
29 struct bvhnode *left, *right;
39 void free_bvh_tree(struct bvhnode *tree);
41 int ray_triangle(cgm_ray *ray, struct triangle *tri, float tmax, struct rayhit *hit);
42 int ray_aabox_any(cgm_ray *ray, struct aabox *box, float tmax);
43 int ray_bvhnode(cgm_ray *ray, struct bvhnode *bn, float tmax, struct rayhit *hit);