From cfefa1d086825ea78c14ad3527637613378992da Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2013 06:29:13 +0000 Subject: add function BKE_bmbvh_find_face_segment() given a segment, finds finds an intersecting faces from the first point to the second, needed for checking self intersections (not used yet). --- source/blender/blenkernel/BKE_editmesh_bvh.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenkernel/BKE_editmesh_bvh.h') diff --git a/source/blender/blenkernel/BKE_editmesh_bvh.h b/source/blender/blenkernel/BKE_editmesh_bvh.h index b0761f216d2..3ae6c906a87 100644 --- a/source/blender/blenkernel/BKE_editmesh_bvh.h +++ b/source/blender/blenkernel/BKE_editmesh_bvh.h @@ -46,6 +46,9 @@ void BKE_bmbvh_free(BMBVHTree *tree); struct BVHTree *BKE_bmbvh_tree_get(BMBVHTree *tree); struct BMFace *BKE_bmbvh_ray_cast(BMBVHTree *tree, const float co[3], const float dir[3], float *r_dist, float r_hitout[3], float r_cagehit[3]); +/* find a face intersecting a segment (but not apart of the segment) */ +struct BMFace *BKE_bmbvh_find_face_segment(BMBVHTree *tree, const float co_a[3], const float co_b[3], + float *r_fac, float r_hitout[3], float r_cagehit[3]); /* find a vert closest to co in a sphere of radius maxdist */ struct BMVert *BKE_bmbvh_find_vert_closest(BMBVHTree *tree, const float co[3], const float maxdist); -- cgit v1.2.3