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