diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-24 06:21:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-24 06:21:58 +0400 |
commit | 3214d4fd5aa803237637da2eee5d1b9e0006ae26 (patch) | |
tree | b4b1faed52c55eea7da18b10eb216bfff90e3bf7 /source/blender/blenkernel/BKE_pbvh.h | |
parent | 551d1a1ed56d7406f440c8e858ad64f177664c5b (diff) |
Code Cleanup: PBVH, avoid sqrt and use bool for raycast functions
Diffstat (limited to 'source/blender/blenkernel/BKE_pbvh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_pbvh.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h index 3601ff1ce04..7517a931c76 100644 --- a/source/blender/blenkernel/BKE_pbvh.h +++ b/source/blender/blenkernel/BKE_pbvh.h @@ -94,12 +94,14 @@ void BKE_pbvh_raycast(PBVH *bvh, BKE_pbvh_HitOccludedCallback cb, void *data, const float ray_start[3], const float ray_normal[3], int original); -int BKE_pbvh_node_raycast(PBVH *bvh, PBVHNode *node, float (*origco)[3], int use_origco, +bool BKE_pbvh_node_raycast(PBVH *bvh, PBVHNode *node, float (*origco)[3], int use_origco, const float ray_start[3], const float ray_normal[3], float *dist); -int BKE_pbvh_bmesh_node_raycast_detail(PBVHNode *node, const float ray_start[3], - const float ray_normal[3], float *detail, float *dist); +bool BKE_pbvh_bmesh_node_raycast_detail( + PBVHNode *node, + const float ray_start[3], const float ray_normal[3], + float *detail, float *dist); /* for orthographic cameras, project the far away ray segment points to the root node so * we can have better precision. */ |