Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_mesh_runtime.h
| Show All 19 Lines | |||||
| #define __BKE_MESH_RUNTIME_H__ | #define __BKE_MESH_RUNTIME_H__ | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| * | * | ||||
| * This file contains access functions for the Mesh.runtime struct. | * This file contains access functions for the Mesh.runtime struct. | ||||
| */ | */ | ||||
| #include "BKE_customdata.h" /* for CustomDataMask */ | //#include "BKE_customdata.h" /* for CustomDataMask */ | ||||
| struct ColorBand; | struct ColorBand; | ||||
| struct CustomData; | struct CustomData; | ||||
| struct CustomData_Masks; | |||||
| struct Depsgraph; | struct Depsgraph; | ||||
| struct KeyBlock; | struct KeyBlock; | ||||
| struct MLoop; | struct MLoop; | ||||
| struct MLoopTri; | struct MLoopTri; | ||||
| struct MVertTri; | struct MVertTri; | ||||
| struct Mesh; | struct Mesh; | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| Show All 21 Lines | |||||
| /* NOTE: the functions below are defined in DerivedMesh.c, and are intended to be moved | /* NOTE: the functions below are defined in DerivedMesh.c, and are intended to be moved | ||||
| * to a more suitable location when that file is removed. | * to a more suitable location when that file is removed. | ||||
| * They should also be renamed to use conventions from BKE, not old DerivedMesh.c. | * They should also be renamed to use conventions from BKE, not old DerivedMesh.c. | ||||
| * For now keep the names similar to avoid confusion. */ | * For now keep the names similar to avoid confusion. */ | ||||
| #ifdef USE_DERIVEDMESH | #ifdef USE_DERIVEDMESH | ||||
| struct DerivedMesh *mesh_get_derived_final( | struct DerivedMesh *mesh_get_derived_final( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask); | struct Object *ob, CustomData_Masks *dataMask); | ||||
| #endif | #endif | ||||
| struct Mesh *mesh_get_eval_final( | struct Mesh *mesh_get_eval_final( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, CustomDataMask dataMask); | struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, struct CustomData_Masks dataMask); | ||||
| #ifdef USE_DERIVEDMESH | #ifdef USE_DERIVEDMESH | ||||
| struct DerivedMesh *mesh_get_derived_deform( | struct DerivedMesh *mesh_get_derived_deform( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask); | struct Object *ob, CustomData_Masks *dataMask); | ||||
| #endif | #endif | ||||
| struct Mesh *mesh_get_eval_deform( | struct Mesh *mesh_get_eval_deform( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask); | struct Object *ob, struct CustomData_Masks dataMask); | ||||
| struct Mesh *mesh_create_eval_final_render( | struct Mesh *mesh_create_eval_final_render( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask); | struct Object *ob, struct CustomData_Masks dataMask); | ||||
| #ifdef USE_DERIVEDMESH | #ifdef USE_DERIVEDMESH | ||||
| struct DerivedMesh *mesh_create_derived_index_render( | struct DerivedMesh *mesh_create_derived_index_render( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask, int index); | struct Object *ob, CustomData_Masks dataMask, int index); | ||||
| #endif | #endif | ||||
| struct Mesh *mesh_create_eval_final_index_render( | struct Mesh *mesh_create_eval_final_index_render( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask, int index); | struct Object *ob, struct CustomData_Masks dataMask, int index); | ||||
| #ifdef USE_DERIVEDMESH | #ifdef USE_DERIVEDMESH | ||||
| struct DerivedMesh *mesh_create_derived_view( | struct DerivedMesh *mesh_create_derived_view( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask); | struct Object *ob, CustomData_Masks dataMask); | ||||
| #endif | #endif | ||||
| struct Mesh *mesh_create_eval_final_view( | struct Mesh *mesh_create_eval_final_view( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, CustomDataMask dataMask); | struct Object *ob, struct CustomData_Masks dataMask); | ||||
| struct Mesh *mesh_create_eval_no_deform( | struct Mesh *mesh_create_eval_no_deform( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, float (*vertCos)[3], | struct Object *ob, float (*vertCos)[3], | ||||
| CustomDataMask dataMask); | struct CustomData_Masks dataMask); | ||||
| struct Mesh *mesh_create_eval_no_deform_render( | struct Mesh *mesh_create_eval_no_deform_render( | ||||
| struct Depsgraph *depsgraph, struct Scene *scene, | struct Depsgraph *depsgraph, struct Scene *scene, | ||||
| struct Object *ob, float (*vertCos)[3], | struct Object *ob, float (*vertCos)[3], | ||||
| CustomDataMask dataMask); | struct CustomData_Masks dataMask); | ||||
| void BKE_mesh_runtime_eval_to_meshkey(struct Mesh *me_deformed, struct Mesh *me, struct KeyBlock *kb); | void BKE_mesh_runtime_eval_to_meshkey(struct Mesh *me_deformed, struct Mesh *me, struct KeyBlock *kb); | ||||
| #ifndef NDEBUG | #ifndef NDEBUG | ||||
| char *BKE_mesh_runtime_debug_info(struct Mesh *me_eval); | char *BKE_mesh_runtime_debug_info(struct Mesh *me_eval); | ||||
| void BKE_mesh_runtime_debug_print(struct Mesh *me_eval); | void BKE_mesh_runtime_debug_print(struct Mesh *me_eval); | ||||
| void BKE_mesh_runtime_debug_print_cdlayers(struct CustomData *data); | void BKE_mesh_runtime_debug_print_cdlayers(struct CustomData *data); | ||||
| bool BKE_mesh_runtime_is_valid(struct Mesh *me_eval); | bool BKE_mesh_runtime_is_valid(struct Mesh *me_eval); | ||||
| #endif /* NDEBUG */ | #endif /* NDEBUG */ | ||||
| #endif /* __BKE_MESH_RUNTIME_H__ */ | #endif /* __BKE_MESH_RUNTIME_H__ */ | ||||