|
Blender
V2.93
|
Go to the source code of this file.
This file contains access functions for the Mesh.runtime struct.
Definition in file BKE_mesh_runtime.h.
| void BKE_mesh_runtime_clear_cache | ( | struct Mesh * | mesh | ) |
Definition at line 75 of file mesh_runtime.c.
References BKE_id_free(), BKE_mesh_batch_cache_free(), BKE_mesh_runtime_clear_edit_data(), BKE_mesh_runtime_clear_geometry(), BLI_mutex_end(), Mesh::edit_mesh, Mesh_Runtime::eval_mutex, MEM_freeN, mesh, Mesh_Runtime::mesh_eval, NULL, and Mesh::runtime.
Referenced by BKE_mesh_clear_geometry(), and mesh_free_data().
| bool BKE_mesh_runtime_clear_edit_data | ( | struct Mesh * | mesh | ) |
Definition at line 213 of file mesh_runtime.c.
References BKE_mesh_runtime_reset_edit_data(), Mesh_Runtime::edit_data, MEM_freeN, mesh, NULL, and Mesh::runtime.
Referenced by BKE_mesh_runtime_clear_cache().
| void BKE_mesh_runtime_clear_geometry | ( | struct Mesh * | mesh | ) |
Definition at line 226 of file mesh_runtime.c.
References MLoopTri_Store::array, BKE_shrinkwrap_discard_boundary_data(), BKE_subdiv_ccg_destroy(), Mesh_Runtime::bvh_cache, bvhcache_free(), Mesh_Runtime::looptris, MEM_SAFE_FREE, mesh, NULL, Mesh::runtime, and Mesh_Runtime::subdiv_ccg.
Referenced by BKE_mesh_nomain_to_mesh(), BKE_mesh_runtime_clear_cache(), BM_mesh_bm_to_me(), quadriflow_start_job(), and voxel_remesh_exec().
| char* BKE_mesh_runtime_debug_info | ( | struct Mesh * | me_eval | ) |
Definition at line 302 of file mesh_runtime.c.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), Mesh_Runtime::deformed_only, DM_TYPE_CCGDM, DM_TYPE_CDDM, Mesh::fdata, Mesh::ldata, mesh_runtime_debug_info_layers(), ret, Mesh::runtime, Mesh::totedge, Mesh::totface, Mesh::totpoly, Mesh::totvert, and Node::type.
Referenced by BKE_mesh_runtime_debug_print().
| void BKE_mesh_runtime_debug_print | ( | struct Mesh * | me_eval | ) |
Definition at line 357 of file mesh_runtime.c.
References BKE_mesh_runtime_debug_info(), MEM_freeN, and str.
| void BKE_mesh_runtime_debug_print_cdlayers | ( | struct CustomData * | data | ) |
Definition at line 366 of file mesh_runtime.c.
References CustomData_file_write_info(), CustomData_layertype_name(), CustomData_sizeof(), data, CustomDataLayer::data, MEM_allocN_len, size(), and CustomDataLayer::type.
| bool BKE_mesh_runtime_ensure_edit_data | ( | struct Mesh * | mesh | ) |
Definition at line 188 of file mesh_runtime.c.
References Mesh_Runtime::edit_data, MEM_callocN, mesh, NULL, and Mesh::runtime.
Referenced by BKE_mesh_wrapper_from_editmesh_with_coords(), and editbmesh_calc_modifiers().
Utility function to convert an (evaluated) Mesh to a shape key block.
Definition at line 524 of file DerivedMesh.cc.
References BKE_keyblock_convert_from_mesh(), Mesh::key, and Mesh::totvert.
Referenced by ED_mesh_shapes_join_objects_exec().
| bool BKE_mesh_runtime_is_valid | ( | struct Mesh * | me_eval | ) |
Definition at line 392 of file mesh_runtime.c.
References BKE_mesh_validate_all_customdata(), BKE_mesh_validate_arrays(), BLI_assert, Mesh::dvert, Mesh::id, is_valid, Mesh::ldata, Mesh::medge, Mesh::mface, Mesh::mloop, Mesh::mpoly, Mesh::mvert, ID::name, Mesh::totedge, Mesh::totface, Mesh::totloop, Mesh::totpoly, and Mesh::totvert.
Definition at line 155 of file mesh_runtime.c.
References MLoopTri_Store::array, BKE_mesh_runtime_looptri_len(), BKE_mesh_runtime_looptri_recalc(), BLI_assert, BLI_mutex_lock(), BLI_mutex_unlock(), Mesh_Runtime::eval_mutex, MLoopTri_Store::len, Mesh_Runtime::looptris, mesh, NULL, and Mesh::runtime.
Referenced by BKE_bvhtree_from_mesh_get(), BKE_editmesh_looptri_calc(), BKE_mesh_calc_loop_tangents(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_remesh_reproject_sculpt_face_sets(), C_BVHTree_FromObject(), cloth_from_mesh(), deformVerts(), dynamicPaint_createUVSurface(), dynamicPaint_paintMesh(), dynamicPaint_setInitialColor(), blender::nodes::get_mesh_looptris(), harmonic_coordinates_bind(), imapaint_pick_uv(), initSystem(), proj_paint_state_mesh_eval_init(), raycastMesh(), RE_bake_pixels_populate_from_objects(), shrinkwrap_build_boundary_data(), snapMesh(), and surfacedeformBind().
| int BKE_mesh_runtime_looptri_len | ( | const struct Mesh * | mesh | ) |
| void BKE_mesh_runtime_looptri_recalc | ( | struct Mesh * | mesh | ) |
Definition at line 127 of file mesh_runtime.c.
References MLoopTri_Store::array, MLoopTri_Store::array_wip, atomic_cas_ptr(), BKE_mesh_recalc_looptri(), BLI_assert, Mesh_Runtime::looptris, mesh, mesh_ensure_looptri_data(), Mesh::mloop, Mesh::mpoly, Mesh::mvert, NULL, Mesh::runtime, Mesh::totloop, and Mesh::totpoly.
Referenced by BKE_mesh_runtime_looptri_ensure().
| void BKE_mesh_runtime_reset | ( | Mesh * | mesh | ) |
Default values defined at read time.
Definition at line 49 of file mesh_runtime.c.
References BLI_mutex_init(), Mesh_Runtime::eval_mutex, MEM_mallocN, mesh, and Mesh::runtime.
Referenced by mesh_blend_read_data(), and mesh_init_data().
| bool BKE_mesh_runtime_reset_edit_data | ( | struct Mesh * | mesh | ) |
Definition at line 198 of file mesh_runtime.c.
References Mesh_Runtime::edit_data, MEM_SAFE_FREE, mesh, NULL, EditMeshData::polyCos, EditMeshData::polyNos, Mesh::runtime, EditMeshData::vertexCos, and EditMeshData::vertexNos.
Referenced by BKE_mesh_runtime_clear_edit_data(), and editbmesh_calc_modifiers().
| void BKE_mesh_runtime_reset_on_copy | ( | struct Mesh * | mesh, |
| const int | flag | ||
| ) |
Referenced by mesh_copy_data().
| void BKE_mesh_runtime_verttri_from_looptri | ( | struct MVertTri * | r_verttri, |
| const struct MLoop * | mloop, | ||
| const struct MLoopTri * | looptri, | ||
| int | looptri_num | ||
| ) |
Referenced by cloth_from_mesh(), and deformVerts().
| struct Mesh* mesh_create_eval_final | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| const struct CustomData_MeshMasks * | dataMask | ||
| ) |
Referenced by bvh_get_mesh(), mesh_new_from_mesh_object_with_layers(), and object_force_modifier_update_for_bind().
| struct Mesh* mesh_create_eval_final_index_render | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| const struct CustomData_MeshMasks * | dataMask, | ||
| int | index | ||
| ) |
| struct Mesh* mesh_create_eval_no_deform | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| const struct CustomData_MeshMasks * | dataMask | ||
| ) |
Referenced by bvh_get_mesh().
| struct Mesh* mesh_create_eval_no_deform_render | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| const struct CustomData_MeshMasks * | dataMask | ||
| ) |
Referenced by bvh_get_mesh().
| struct Mesh* mesh_get_eval_deform | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| const struct CustomData_MeshMasks * | dataMask | ||
| ) |
| struct Mesh* mesh_get_eval_final | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| const struct CustomData_MeshMasks * | dataMask | ||
| ) |
Referenced by add_verts_to_dgroups(), bc_get_mesh_copy(), BKE_mesh_to_curve(), BKE_mesh_to_pointcloud(), BKE_object_data_transfer_ex(), BKE_object_data_transfer_layout(), bpy_bmesh_from_object(), bvh_get_mesh(), blender::io::alembic::ABCHairWriter::do_write(), dt_layers_select_src_itemf(), ED_mesh_pick_face_vert(), ED_mesh_pick_vert(), knifeproject_poly_from_object(), meshobject_foreachScreenVert(), multiresModifier_reshapeFromObject(), object_convert_exec(), paint_sample_color(), paint_weight_gradient_exec(), particle_intersect_mesh(), proj_paint_state_mesh_eval_init(), vpaint_proj_dm_map_cosnos_init(), and vpaint_proj_dm_map_cosnos_update().