Blender V5.3
editmesh_bvh.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_kdopbvh.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector_c.hh"
#include "BKE_editmesh.hh"
#include "BKE_editmesh_bvh.hh"

Go to the source code of this file.

Classes

struct  blender::BMBVHTree
struct  blender::RayCastUserData
struct  blender::RayCastUserData_Filter
struct  blender::VertSearchUserData
struct  blender::FaceSearchUserData
struct  blender::BMBVHTree_OverlapData

Namespaces

namespace  blender
 BMesh Iterators.

Functions

BMBVHTree * blender::BKE_bmbvh_new_from_editmesh (struct BMEditMesh *em, struct BMesh *bm, int flag, const float3 *cos_cage, bool cos_cage_free)
BMBVHTree * blender::BKE_bmbvh_new_ex (BMesh *bm, const Span< std::array< BMLoop *, 3 > > looptris, int flag, const float3 *cos_cage, const bool cos_cage_free, bool(*test_fn)(BMFace *, void *user_data), void *user_data)
static bool blender::bm_face_is_select (BMFace *f, void *)
static bool blender::bm_face_is_not_hidden (BMFace *f, void *)
BMBVHTree * blender::BKE_bmbvh_new (BMesh *bm, const Span< std::array< BMLoop *, 3 > > looptris, int flag, const float3 *cos_cage, const bool cos_cage_free)
void blender::BKE_bmbvh_free (BMBVHTree *tree)
struct BVHTree * blender::BKE_bmbvh_tree_get (BMBVHTree *tree)
static void blender::bmbvh_tri_from_face (const float *cos[3], const std::array< BMLoop *, 3 > &ltri, const float3 *cos_cage)
static BMFace * blender::bmbvh_ray_cast_handle_hit (const BMBVHTree *bmtree, RayCastUserData *bmcb_data, const BVHTreeRayHit *hit, float *r_dist, float r_hitout[3], float r_cagehit[3])
static void blender::bmbvh_ray_cast_cb (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit)
struct BMFace * blender::BKE_bmbvh_ray_cast (const BMBVHTree *tree, const float co[3], const float dir[3], float radius, float *r_dist, float r_hitout[3], float r_cagehit[3])
static void blender::bmbvh_ray_cast_cb_filter (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit)
struct BMFace * blender::BKE_bmbvh_ray_cast_filter (const BMBVHTree *tree, const float co[3], const float dir[3], float radius, float *r_dist, float r_hitout[3], float r_cagehit[3], BMBVHTree_FaceFilter filter_cb, void *filter_userdata)
static void blender::bmbvh_find_vert_closest_cb (void *userdata, int index, const float co[3], BVHTreeNearest *hit)
struct BMVert * blender::BKE_bmbvh_find_vert_closest (const BMBVHTree *tree, const float co[3], float dist_max)
static void blender::bmbvh_find_face_closest_cb (void *userdata, int index, const float co[3], BVHTreeNearest *hit)
struct BMFace * blender::BKE_bmbvh_find_face_closest (const BMBVHTree *tree, const float co[3], float dist_max)
static bool blender::bmbvh_overlap_cb (void *userdata, int index_a, int index_b, int)
struct BVHTreeOverlap * blender::BKE_bmbvh_overlap (const BMBVHTree *bmtree_a, const BMBVHTree *bmtree_b, unsigned int *r_overlap_tot)
static bool blender::bmbvh_overlap_self_cb (void *userdata, int index_a, int index_b, int thread)
struct BVHTreeOverlap * blender::BKE_bmbvh_overlap_self (const BMBVHTree *bmtree, unsigned int *r_overlap_tot)