From 9d090c4717f349e027cd68bcdcbd3e54639b6757 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 17 Jul 2015 04:15:24 +1000 Subject: Split ray_face_intersection into quad/tri versions Since many callers only need a single triangle --- source/blender/blenkernel/intern/pbvh_intern.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/pbvh_intern.h') diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h index 5967704141f..bae323dedef 100644 --- a/source/blender/blenkernel/intern/pbvh_intern.h +++ b/source/blender/blenkernel/intern/pbvh_intern.h @@ -176,10 +176,14 @@ void BB_expand_with_bb(BB *bb, BB *bb2); void BBC_update_centroid(BBC *bbc); int BB_widest_axis(const BB *bb); void pbvh_grow_nodes(PBVH *bvh, int totnode); -bool ray_face_intersection( +bool ray_face_intersection_quad( + const float ray_start[3], const float ray_normal[3], + const float *t0, const float *t1, const float *t2, const float *t3, + float *r_dist); +bool ray_face_intersection_tri( const float ray_start[3], const float ray_normal[3], const float *t0, const float *t1, const float *t2, - const float *t3, float *fdist); + float *r_dist); void pbvh_update_BB_redraw(PBVH *bvh, PBVHNode **nodes, int totnode, int flag); /* pbvh_bmesh.c */ -- cgit v1.2.3