Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_pbvh.h
| Show All 28 Lines | |||||
| #include "BLI_bitmap.h" | #include "BLI_bitmap.h" | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| struct CCGElem; | struct CCGElem; | ||||
| struct CCGKey; | struct CCGKey; | ||||
| struct CustomData; | struct CustomData; | ||||
| struct DMFlagMat; | struct DMFlagMat; | ||||
| struct MFace; | struct MPoly; | ||||
| struct MLoop; | |||||
| struct MLoopTri; | |||||
| struct MVert; | struct MVert; | ||||
| struct PBVH; | struct PBVH; | ||||
| struct PBVHNode; | struct PBVHNode; | ||||
| struct BMesh; | struct BMesh; | ||||
| struct BMLog; | struct BMLog; | ||||
| typedef struct PBVH PBVH; | typedef struct PBVH PBVH; | ||||
| typedef struct PBVHNode PBVHNode; | typedef struct PBVHNode PBVHNode; | ||||
| Show All 9 Lines | |||||
| typedef void (*BKE_pbvh_HitCallback)(PBVHNode *node, void *data); | typedef void (*BKE_pbvh_HitCallback)(PBVHNode *node, void *data); | ||||
| typedef void (*BKE_pbvh_HitOccludedCallback)(PBVHNode *node, void *data, float *tmin); | typedef void (*BKE_pbvh_HitOccludedCallback)(PBVHNode *node, void *data, float *tmin); | ||||
| /* Building */ | /* Building */ | ||||
| PBVH *BKE_pbvh_new(void); | PBVH *BKE_pbvh_new(void); | ||||
| void BKE_pbvh_build_mesh( | void BKE_pbvh_build_mesh( | ||||
| PBVH *bvh, const struct MFace *faces, struct MVert *verts, | PBVH *bvh, | ||||
| int totface, int totvert, struct CustomData *vdata); | const struct MPoly *mpoly, const struct MLoop *mloop, | ||||
| struct MVert *verts, int totvert, struct CustomData *vdata, | |||||
| const struct MLoopTri *looptri, int looptri_num); | |||||
| void BKE_pbvh_build_grids(PBVH *bvh, struct CCGElem **grid_elems, | void BKE_pbvh_build_grids(PBVH *bvh, struct CCGElem **grid_elems, | ||||
| int totgrid, | int totgrid, | ||||
| struct CCGKey *key, void **gridfaces, struct DMFlagMat *flagmats, | struct CCGKey *key, void **gridfaces, struct DMFlagMat *flagmats, | ||||
| unsigned int **grid_hidden); | unsigned int **grid_hidden); | ||||
| void BKE_pbvh_build_bmesh(PBVH *bvh, struct BMesh *bm, bool smooth_shading, struct BMLog *log, const int cd_vert_node_offset, const int cd_face_node_offset); | void BKE_pbvh_build_bmesh(PBVH *bvh, struct BMesh *bm, bool smooth_shading, struct BMLog *log, const int cd_vert_node_offset, const int cd_face_node_offset); | ||||
| void BKE_pbvh_free(PBVH *bvh); | void BKE_pbvh_free(PBVH *bvh); | ||||
| void BKE_pbvh_free_layer_disp(PBVH *bvh); | void BKE_pbvh_free_layer_disp(PBVH *bvh); | ||||
| ▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines | |||||