Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_bvhutils.h
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | typedef struct BVHTreeFromMesh { | ||||
| /** Default callbacks to BVH nearest and ray-cast. */ | /** Default callbacks to BVH nearest and ray-cast. */ | ||||
| BVHTree_NearestPointCallback nearest_callback; | BVHTree_NearestPointCallback nearest_callback; | ||||
| BVHTree_RayCastCallback raycast_callback; | BVHTree_RayCastCallback raycast_callback; | ||||
| /* Vertex array, so that callbacks have instant access to data. */ | /* Vertex array, so that callbacks have instant access to data. */ | ||||
| const float (*vert_positions)[3]; | const float (*vert_positions)[3]; | ||||
| const struct MEdge *edge; | const struct MEdge *edge; | ||||
| const struct MFace *face; | const struct MFace *face; | ||||
| const struct MLoop *loop; | const int *corner_verts; | ||||
| const struct MLoopTri *looptri; | const struct MLoopTri *looptri; | ||||
| /* Private data */ | /* Private data */ | ||||
| bool cached; | bool cached; | ||||
| } BVHTreeFromMesh; | } BVHTreeFromMesh; | ||||
| typedef enum BVHCacheType { | typedef enum BVHCacheType { | ||||
| ▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | BVHTree *bvhtree_from_editmesh_looptri_ex(BVHTreeFromEditMesh *data, | ||||
| int tree_type, | int tree_type, | ||||
| int axis); | int axis); | ||||
| /** | /** | ||||
| * Builds a BVH-tree where nodes are the looptri faces of the given mesh. | * Builds a BVH-tree where nodes are the looptri faces of the given mesh. | ||||
| */ | */ | ||||
| BVHTree *bvhtree_from_mesh_looptri_ex(struct BVHTreeFromMesh *data, | BVHTree *bvhtree_from_mesh_looptri_ex(struct BVHTreeFromMesh *data, | ||||
| const float (*vert_positions)[3], | const float (*vert_positions)[3], | ||||
| const struct MLoop *mloop, | const int *corner_verts, | ||||
| const struct MLoopTri *looptri, | const struct MLoopTri *looptri, | ||||
| int looptri_num, | int looptri_num, | ||||
| const blender::BitVector<> &mask, | const blender::BitVector<> &mask, | ||||
| int looptri_num_active, | int looptri_num_active, | ||||
| float epsilon, | float epsilon, | ||||
| int tree_type, | int tree_type, | ||||
| int axis); | int axis); | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||