|
Blender
V2.93
|
#include "CLG_log.h"#include "MEM_guardedalloc.h"#include "DNA_curve_types.h"#include "DNA_key_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_object_types.h"#include "DNA_pointcloud_types.h"#include "DNA_scene_types.h"#include "BLI_edgehash.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BKE_DerivedMesh.h"#include "BKE_displist.h"#include "BKE_editmesh.h"#include "BKE_key.h"#include "BKE_lib_id.h"#include "BKE_lib_query.h"#include "BKE_main.h"#include "BKE_material.h"#include "BKE_mball.h"#include "BKE_mesh.h"#include "BKE_mesh_runtime.h"#include "BKE_mesh_wrapper.h"#include "BKE_modifier.h"#include "BKE_curve.h"#include "BKE_object.h"#include "BKE_pointcloud.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_query.h"Go to the source code of this file.
Classes | |
| struct | EdgeLink |
| struct | VertLink |
Macros | |
| #define | ASSERT_IS_VALID_MESH(mesh) |
Typedefs | |
| typedef struct EdgeLink | EdgeLink |
| typedef struct VertLink | VertLink |
Functions | |
| void | BKE_mesh_from_metaball (ListBase *lb, Mesh *me) |
| static void | make_edges_mdata_extend (MEdge **r_alledge, int *r_totedge, const MPoly *mpoly, MLoop *mloop, const int totpoly) |
| int | BKE_mesh_nurbs_to_mdata (Object *ob, MVert **r_allvert, int *r_totvert, MEdge **r_alledge, int *r_totedge, MLoop **r_allloop, MPoly **r_allpoly, int *r_totloop, int *r_totpoly) |
| int | BKE_mesh_nurbs_displist_to_mdata (Object *ob, const ListBase *dispbase, MVert **r_allvert, int *r_totvert, MEdge **r_alledge, int *r_totedge, MLoop **r_allloop, MPoly **r_allpoly, MLoopUV **r_alluv, int *r_totloop, int *r_totpoly) |
| Mesh * | BKE_mesh_new_nomain_from_curve_displist (Object *ob, ListBase *dispbase) |
| Mesh * | BKE_mesh_new_nomain_from_curve (Object *ob) |
| void | BKE_mesh_from_nurbs_displist (Main *bmain, Object *ob, ListBase *dispbase, const char *obdata_name, bool temporary) |
| void | BKE_mesh_from_nurbs (Main *bmain, Object *ob) |
| static void | prependPolyLineVert (ListBase *lb, unsigned int index) |
| static void | appendPolyLineVert (ListBase *lb, unsigned int index) |
| void | BKE_mesh_to_curve_nurblist (const Mesh *me, ListBase *nurblist, const int edge_users_test) |
| void | BKE_mesh_to_curve (Main *bmain, Depsgraph *depsgraph, Scene *UNUSED(scene), Object *ob) |
| void | BKE_pointcloud_from_mesh (Mesh *me, PointCloud *pointcloud) |
| void | BKE_mesh_to_pointcloud (Main *bmain, Depsgraph *depsgraph, Scene *UNUSED(scene), Object *ob) |
| void | BKE_mesh_from_pointcloud (const PointCloud *pointcloud, Mesh *me) |
| void | BKE_mesh_edges_set_draw_render (Mesh *mesh) |
| void | BKE_pointcloud_to_mesh (Main *bmain, Depsgraph *depsgraph, Scene *UNUSED(scene), Object *ob) |
| static Object * | object_for_curve_to_mesh_create (Object *object) |
| static void | curve_to_mesh_eval_ensure (Object *object) |
| static Mesh * | mesh_new_from_curve_type_object (Object *object) |
| static Mesh * | mesh_new_from_mball_object (Object *object) |
| static Mesh * | mesh_new_from_mesh (Object *object, Mesh *mesh) |
| static Mesh * | mesh_new_from_mesh_object_with_layers (Depsgraph *depsgraph, Object *object, const bool preserve_origindex) |
| static Mesh * | mesh_new_from_mesh_object (Depsgraph *depsgraph, Object *object, const bool preserve_all_data_layers, const bool preserve_origindex) |
| Mesh * | BKE_mesh_new_from_object (Depsgraph *depsgraph, Object *object, const bool preserve_all_data_layers, const bool preserve_origindex) |
| static int | foreach_libblock_make_original_callback (LibraryIDLinkCallbackData *cb_data) |
| static int | foreach_libblock_make_usercounts_callback (LibraryIDLinkCallbackData *cb_data) |
| Mesh * | BKE_mesh_new_from_object_to_bmain (Main *bmain, Depsgraph *depsgraph, Object *object, bool preserve_all_data_layers) |
| static void | add_shapekey_layers (Mesh *mesh_dest, Mesh *mesh_src) |
| Mesh * | BKE_mesh_create_derived_for_modifier (struct Depsgraph *depsgraph, Scene *scene, Object *ob_eval, ModifierData *md_eval, const bool build_shapekey_layers) |
| static void | shapekey_layers_to_keyblocks (Mesh *mesh_src, Mesh *mesh_dst, int actshape_uid) |
| void | BKE_mesh_nomain_to_mesh (Mesh *mesh_src, Mesh *mesh_dst, Object *ob, const CustomData_MeshMasks *mask, bool take_ownership) |
| void | BKE_mesh_nomain_to_meshkey (Mesh *mesh_src, Mesh *mesh_dst, KeyBlock *kb) |
Variables | |
| static CLG_LogRef | LOG = {"bke.mesh_convert"} |
| #define ASSERT_IS_VALID_MESH | ( | mesh | ) |
Definition at line 72 of file mesh_convert.c.
Definition at line 1380 of file mesh_convert.c.
References Key::block, CD_ASSIGN, CD_SHAPEKEY, CLOG_ERROR, CustomData_add_layer_named(), CustomData_get_layer_index_n(), KeyBlock::data, ListBase::first, Mesh::id, Mesh::key, LOG, MEM_calloc_arrayN, MEM_malloc_arrayN, KeyBlock::name, ID::name, KeyBlock::next, KeyBlock::totelem, Mesh::totvert, and KeyBlock::uid.
Referenced by BKE_mesh_create_derived_for_modifier().
|
static |
Definition at line 732 of file mesh_convert.c.
References BLI_addtail(), VertLink::index, and MEM_callocN.
Referenced by BKE_mesh_to_curve_nurblist().
| Mesh* BKE_mesh_create_derived_for_modifier | ( | struct Depsgraph * | depsgraph, |
| Scene * | scene, | ||
| Object * | ob_eval, | ||
| ModifierData * | md_eval, | ||
| const bool | build_shapekey_layers | ||
| ) |
Definition at line 1426 of file mesh_convert.c.
References add_shapekey_layers(), ASSERT_IS_VALID_MESH, BKE_id_copy_ex(), BKE_id_free(), BKE_keyblock_convert_to_mesh(), BKE_mesh_vert_coords_alloc(), BKE_mesh_vert_coords_apply(), BKE_modifier_get_info(), BLI_findlink(), Key::block, Object::data, Object_Runtime::data_orig, ModifierTypeInfo::deformVerts, depsgraph, eModifierMode_Realtime, eModifierTypeType_OnlyDeform, float(), Mesh::id, ModifierTypeInfo::isDisabled, Mesh::key, LIB_ID_COPY_LOCALIZE, MEM_freeN, MOD_APPLY_TO_BASE_MESH, ModifierData::mode, ModifierTypeInfo::modifyMesh, NULL, result, Object::runtime, scene, Object::shapenr, ModifierTypeInfo::type, and ModifierData::type.
Referenced by modifier_apply_create_mesh_for_modifier().
| void BKE_mesh_edges_set_draw_render | ( | Mesh * | mesh | ) |
Definition at line 983 of file mesh_convert.c.
References MEdge::flag, ME_EDGEDRAW, ME_EDGERENDER, Mesh::medge, mesh, and Mesh::totedge.
Referenced by object_convert_exec().
Definition at line 77 of file mesh_convert.c.
References Freestyle::a, BKE_mesh_calc_edges(), BKE_mesh_calc_normals(), BKE_mesh_update_customdata_pointers(), CD_CALLOC, CD_MLOOP, CD_MPOLY, CD_MVERT, MVert::co, copy_v3_v3(), count, CustomData_add_layer(), DL_INDEX4, ListBase::first, MPoly::flag, DispList::index, Mesh::ldata, MPoly::loopstart, ME_SMOOTH, Mesh::mloop, Mesh::mpoly, Mesh::mvert, MVert::no, normal_float_to_short_v3(), DispList::nors, DispList::nr, NULL, DispList::parts, Mesh::totloop, MPoly::totloop, Mesh::totpoly, Mesh::totvert, DispList::type, MLoop::v, DispList::verts, and verts.
Referenced by mesh_new_from_mball_object(), and object_convert_exec().
Definition at line 703 of file mesh_convert.c.
References Object::data, and NULL.
| void BKE_mesh_from_nurbs_displist | ( | Main * | bmain, |
| Object * | ob, | ||
| ListBase * | dispbase, | ||
| const char * | obdata_name, | ||
| bool | temporary | ||
| ) |
Definition at line 584 of file mesh_convert.c.
References BKE_id_free(), BKE_id_free_us(), BKE_id_new_nomain(), BKE_mesh_add(), BKE_mesh_calc_normals(), BKE_mesh_nomain_to_mesh(), BKE_mesh_nurbs_displist_to_mdata(), BKE_mesh_texspace_calc(), CD_ASSIGN, CD_MASK_MESH, CD_MEDGE, CD_MLOOP, CD_MLOOPUV, CD_MPOLY, CD_MVERT, copy_v3_v3(), CU_AUTOSPACE, CustomData_add_layer(), CustomData_add_layer_named(), Object::data, Object_Runtime::data_eval, ListBase::first, Object::id, ID_ME, id_us_min(), id_us_plus(), if(), ID::next, NULL, OB_MESH, Main::objects, Object::runtime, and Object::type.
Referenced by mesh_new_from_curve_type_object().
| void BKE_mesh_from_pointcloud | ( | const PointCloud * | pointcloud, |
| Mesh * | me | ||
| ) |
Definition at line 952 of file mesh_convert.c.
References BLI_assert, CD_CALLOC, CD_DUPLICATE, CD_MASK_PROP_ALL, CD_MVERT, CD_PROP_FLOAT3, MVert::co, copy_v3_v3(), CustomData_add_layer(), CustomData_free_layer(), CustomData_get_named_layer_index(), CustomData_merge(), CustomData_update_typemap(), CustomDataLayer::data, float(), mask(), Mesh::mvert, NULL, PointCloud::pdata, POINTCLOUD_ATTR_POSITION, PointCloud::totpoint, and Mesh::totvert.
Referenced by BKE_pointcloud_to_mesh().
| Mesh* BKE_mesh_new_from_object | ( | Depsgraph * | depsgraph, |
| Object * | object, | ||
| const bool | preserve_all_data_layers, | ||
| const bool | preserve_origindex | ||
| ) |
Definition at line 1248 of file mesh_convert.c.
References BLI_assert, depsgraph, Mesh::edit_mesh, Mesh::id, mesh_new_from_curve_type_object(), mesh_new_from_mball_object(), mesh_new_from_mesh_object(), NULL, OB_CURVE, OB_FONT, OB_MBALL, OB_MESH, OB_SURF, Object::type, and ID::us.
Referenced by bake(), bake_mesh_new_from_object(), BKE_mesh_new_from_object_to_bmain(), BKE_object_to_mesh(), bpy_bmesh_from_object(), blender::io::alembic::ABCMetaballWriter::get_export_mesh(), blender::io::usd::USDMetaballWriter::get_export_mesh(), and lineart_geometry_object_load().
| Mesh* BKE_mesh_new_from_object_to_bmain | ( | Main * | bmain, |
| Depsgraph * | depsgraph, | ||
| Object * | object, | ||
| bool | preserve_all_data_layers | ||
| ) |
Definition at line 1323 of file mesh_convert.c.
References BKE_library_foreach_ID_link(), BKE_mesh_add(), BKE_mesh_new_from_object(), BKE_mesh_nomain_to_mesh(), BLI_assert, CD_MASK_MESH, Object::data, depsgraph, ELEM, Mesh::flag, foreach_libblock_make_original_callback(), foreach_libblock_make_usercounts_callback(), Mesh::id, id_us_min(), IDWALK_NOP, Mesh::mat, mesh, Main::name, ID::name, NULL, OB_CURVE, OB_FONT, OB_MBALL, OB_MESH, OB_SURF, Mesh::smoothresh, Mesh::totcol, Object::type, and ID::us.
Referenced by object_data_convert_curve_to_mesh().
Definition at line 572 of file mesh_convert.c.
References BKE_mesh_new_nomain_from_curve_displist(), Object_Runtime::curve_cache, CurveCache::disp, NULL, and Object::runtime.
Referenced by blender::io::alembic::ABCCurveMeshWriter::get_export_mesh(), knifeproject_poly_from_object(), MOD_deform_mesh_eval_get(), and blender::io::alembic::AbcCurveReader::read_mesh().
Definition at line 526 of file mesh_convert.c.
References BKE_mesh_new_nomain(), BKE_mesh_nurbs_displist_to_mdata(), CD_ASSIGN, Mesh_Runtime::cd_dirty_vert, CD_MASK_NORMAL, CD_MLOOPUV, CustomData_add_layer_named(), Mesh::ldata, Mesh::medge, MEM_freeN, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, NULL, and Mesh::runtime.
Referenced by BKE_mesh_new_nomain_from_curve(), and curve_calc_modifiers_post().
| void BKE_mesh_nomain_to_mesh | ( | Mesh * | mesh_src, |
| Mesh * | mesh_dst, | ||
| Object * | ob, | ||
| const CustomData_MeshMasks * | mask, | ||
| bool | take_ownership | ||
| ) |
Definition at line 1545 of file mesh_convert.c.
References BKE_id_free(), BKE_mesh_ensure_normals(), BKE_mesh_runtime_clear_geometry(), BKE_mesh_texspace_copy_from_object(), BKE_mesh_update_customdata_pointers(), BLI_assert, BLI_findlink(), Key::block, CD_ASSIGN, CD_DUPLICATE, Mesh::cd_flag, CD_MDISPS, CD_MEDGE, CD_MLOOP, CD_MPOLY, CD_MVERT, CD_SHAPEKEY, CLOG_ERROR, CustomData_add_layer(), CustomData_copy(), CustomData_free(), CustomData_free_typemask(), CustomData_get_layer(), CustomData_has_layer(), CustomData_has_referenced(), CustomData_reset(), CustomData_set_layer(), Mesh_Runtime::deformed_only, Mesh::fdata, Key::id, Mesh::id, id_us_min(), Mesh::key, Mesh::ldata, LIB_TAG_NO_MAIN, LOG, mask(), ME_AUTOSPACE_EVALUATED, Mesh::medge, MEM_dupallocN, MEM_SAFE_FREE, MEMCPY_STRUCT_AFTER, Mesh::mloop, Mesh::mpoly, Mesh::mselect, Mesh::mvert, ID::name, NULL, Mesh::runtime, shapekey_layers_to_keyblocks(), Object::shapenr, ID::tag, Mesh::texflag, Mesh::totedge, Mesh::totface, Mesh::totloop, Mesh::totpoly, Mesh::totselect, Mesh::totvert, and KeyBlock::uid.
Referenced by BKE_mesh_from_nurbs_displist(), and BKE_mesh_new_from_object_to_bmain().
Definition at line 1711 of file mesh_convert.c.
References Freestyle::a, BLI_assert, MVert::co, copy_v3_v3(), KeyBlock::data, Key::elemsize, Mesh::id, Mesh::key, LIB_TAG_NO_MAIN, MEM_freeN, MEM_malloc_arrayN, Mesh::mvert, ID::tag, KeyBlock::totelem, and Mesh::totvert.
Referenced by modifier_apply_shape().
| int BKE_mesh_nurbs_displist_to_mdata | ( | Object * | ob, |
| const ListBase * | dispbase, | ||
| MVert ** | r_allvert, | ||
| int * | r_totvert, | ||
| MEdge ** | r_alledge, | ||
| int * | r_totedge, | ||
| MLoop ** | r_allloop, | ||
| MPoly ** | r_allpoly, | ||
| MLoopUV ** | r_alluv, | ||
| int * | r_totloop, | ||
| int * | r_totpoly | ||
| ) |
Definition at line 250 of file mesh_convert.c.
References Freestyle::a, MVert::co, DispList::col, copy_v3_v3(), CU_DO_2DFILL, CU_SMOOTH, data, Object::data, DL_CYCL_U, DL_CYCL_V, DL_INDEX3, DL_POLY, DL_SEGM, DL_SURF, ListBase::first, DispList::flag, MEdge::flag, MPoly::flag, DispList::index, MPoly::loopstart, make_edges_mdata_extend(), MPoly::mat_nr, ME_EDGEDRAW, ME_EDGERENDER, ME_LOOSEEDGE, ME_SMOOTH, MEM_calloc_arrayN, DispList::next, DispList::nr, NULL, OB_SURF, DispList::parts, DispList::rt, MPoly::totloop, DispList::type, Object::type, MLoopUV::uv, v, MLoop::v, MEdge::v1, MEdge::v2, and DispList::verts.
Referenced by BKE_mesh_from_nurbs_displist(), BKE_mesh_new_nomain_from_curve_displist(), and BKE_mesh_nurbs_to_mdata().
| int BKE_mesh_nurbs_to_mdata | ( | Object * | ob, |
| MVert ** | r_allvert, | ||
| int * | r_totvert, | ||
| MEdge ** | r_alledge, | ||
| int * | r_totedge, | ||
| MLoop ** | r_allloop, | ||
| MPoly ** | r_allpoly, | ||
| int * | r_totloop, | ||
| int * | r_totpoly | ||
| ) |
Definition at line 216 of file mesh_convert.c.
References BKE_mesh_nurbs_displist_to_mdata(), Object_Runtime::curve_cache, CurveCache::disp, NULL, and Object::runtime.
Definition at line 884 of file mesh_convert.c.
References BKE_curve_add(), BKE_mesh_to_curve_nurblist(), BKE_object_free_derived_caches(), CD_MASK_MESH, CU_3D, Object::data, DEG_get_evaluated_object(), DEG_get_evaluated_scene(), depsgraph, ListBase::first, Curve::flag, Object::id, id_us_min(), mesh_get_eval_final(), ID::name, NULL, Curve::nurb, OB_CURVE, and Object::type.
Definition at line 739 of file mesh_convert.c.
References appendPolyLineVert(), BLI_addtail(), BLI_freelinkN(), BLI_freelistN(), Nurb::bp, MVert::co, copy_v3_v3(), CU_NURB_CYCLIC, CU_NURB_ENDPOINT, MLoop::e, EdgeLink::edge, BPoint::f1, ListBase::first, Nurb::flagu, VertLink::index, ListBase::last, MPoly::loopstart, Mesh::medge, MEM_calloc_arrayN, MEM_callocN, MEM_freeN, Mesh::mloop, Mesh::mpoly, Mesh::mvert, VertLink::next, NULL, Nurb::orderu, Nurb::pntsu, Nurb::pntsv, prependPolyLineVert(), EdgeLink::prev, BPoint::radius, Nurb::resolu, SELECT, Mesh::totedge, MPoly::totloop, Mesh::totpoly, MEdge::v1, MEdge::v2, BPoint::vec, and BPoint::weight.
Referenced by BKE_mesh_to_curve().
| void BKE_mesh_to_pointcloud | ( | Main * | bmain, |
| Depsgraph * | depsgraph, | ||
| Scene * | UNUSEDscene, | ||
| Object * | ob | ||
| ) |
Definition at line 931 of file mesh_convert.c.
References BKE_id_materials_copy(), BKE_object_free_derived_caches(), BKE_pointcloud_add(), BKE_pointcloud_from_mesh(), BLI_assert, CD_MASK_MESH, Object::data, DEG_get_evaluated_object(), DEG_get_evaluated_scene(), depsgraph, Object::id, id_us_min(), mesh_get_eval_final(), ID::name, OB_MESH, OB_POINTCLOUD, and Object::type.
| void BKE_pointcloud_from_mesh | ( | Mesh * | me, |
| PointCloud * | pointcloud | ||
| ) |
Definition at line 909 of file mesh_convert.c.
References BKE_pointcloud_update_customdata_pointers(), BLI_assert, CD_DUPLICATE, CD_MASK_PROP_ALL, PointCloud::co, MVert::co, copy_v3_v3(), CustomData_merge(), CustomData_realloc(), CustomData_update_typemap(), mask(), Mesh::mvert, NULL, PointCloud::pdata, PointCloud::totpoint, and Mesh::totvert.
Referenced by BKE_mesh_to_pointcloud().
| void BKE_pointcloud_to_mesh | ( | Main * | bmain, |
| Depsgraph * | depsgraph, | ||
| Scene * | UNUSEDscene, | ||
| Object * | ob | ||
| ) |
Definition at line 991 of file mesh_convert.c.
References BKE_id_materials_copy(), BKE_mesh_add(), BKE_mesh_from_pointcloud(), BKE_object_free_derived_caches(), BLI_assert, Object::data, Object_Runtime::data_eval, DEG_get_evaluated_object(), depsgraph, Object::id, id_us_min(), ID::name, OB_MESH, OB_POINTCLOUD, Object::runtime, and Object::type.
|
static |
Definition at line 1060 of file mesh_convert.c.
References Object_Runtime::bb, curve, Object_Runtime::curve_cache, Object::data, MEM_callocN, NULL, and Object::runtime.
Referenced by mesh_new_from_curve_type_object().
|
static |
Definition at line 1293 of file mesh_convert.c.
References DEG_get_original_id(), LibraryIDLinkCallbackData::id_pointer, IDWALK_RET_NOP, and NULL.
Referenced by BKE_mesh_new_from_object_to_bmain().
|
static |
Definition at line 1304 of file mesh_convert.c.
References LibraryIDLinkCallbackData::cb_flag, LibraryIDLinkCallbackData::id_pointer, id_us_ensure_real(), id_us_plus(), IDWALK_CB_USER, IDWALK_CB_USER_ONE, IDWALK_RET_NOP, and NULL.
Referenced by BKE_mesh_new_from_object_to_bmain().
|
static |
Specialized function to use when we know existing edges don't overlap with poly edges.
Definition at line 145 of file mesh_convert.c.
References BKE_mesh_poly_edgehash_insert(), BLI_assert, BLI_edgehash_free(), BLI_edgehash_haskey(), BLI_edgehash_len(), BLI_edgehash_lookup(), BLI_edgehash_new_ex(), BLI_EDGEHASH_SIZE_GUESS_FROM_POLYS, BLI_edgehashIterator_free(), BLI_edgehashIterator_getKey(), BLI_edgehashIterator_isDone(), BLI_edgehashIterator_new(), BLI_edgehashIterator_setValue(), BLI_edgehashIterator_step(), MEdge::bweight, MEdge::crease, MLoop::e, MEdge::flag, l, MPoly::loopstart, max_ii(), ME_EDGEDRAW, ME_EDGERENDER, MEM_calloc_arrayN, MEM_reallocN, NULL, POINTER_AS_UINT, POINTER_FROM_UINT, MPoly::totloop, BMLoop::v, MLoop::v, MEdge::v1, and MEdge::v2.
Referenced by BKE_mesh_nurbs_displist_to_mdata().
Definition at line 1121 of file mesh_convert.c.
References BKE_id_free(), BKE_mesh_from_nurbs_displist(), curve, Object_Runtime::curve_cache, curve_to_mesh_eval_ensure(), Object::data, DEG_is_evaluated_object(), CurveCache::disp, Curve::editfont, Curve::editnurb, Curve::id, if(), ID::name, NULL, OB_MESH, object_for_curve_to_mesh_create(), Object::runtime, and Object::type.
Referenced by BKE_mesh_new_from_object().
Definition at line 1158 of file mesh_convert.c.
References BKE_id_new_nomain(), BKE_mesh_from_metaball(), BKE_mesh_texspace_copy_from_object(), BKE_object_material_get(), BLI_listbase_is_empty(), Object_Runtime::curve_cache, Object::data, DEG_is_evaluated_object(), CurveCache::disp, ID_ME, if(), Mesh::mat, MetaBall::mat, MEM_dupallocN, NULL, Object::runtime, Mesh::totcol, and MetaBall::totcol.
Referenced by BKE_mesh_new_from_object().
Definition at line 1188 of file mesh_convert.c.
References BKE_id_copy_ex(), BKE_mesh_wrapper_ensure_mdata(), BLI_strncpy(), Object::data, Mesh::id, LIB_ID_CREATE_NO_MAIN, LIB_ID_CREATE_NO_USER_REFCOUNT, mesh, ID::name, and NULL.
Referenced by mesh_new_from_mesh_object(), and mesh_new_from_mesh_object_with_layers().
|
static |
Definition at line 1231 of file mesh_convert.c.
References depsgraph, Mesh::edit_mesh, BMEditMesh::mesh_eval_final, mesh_new_from_mesh(), mesh_new_from_mesh_object_with_layers(), and NULL.
Referenced by BKE_mesh_new_from_object().
|
static |
Definition at line 1202 of file mesh_convert.c.
References CD_MASK_MESH, CD_MASK_ORIGINDEX, Object::data, Object_Runtime::data_orig, DEG_get_evaluated_scene(), DEG_is_original_id(), depsgraph, Object::id, mask(), mesh_create_eval_final(), mesh_new_from_mesh(), NULL, result, Object::runtime, and scene.
Referenced by mesh_new_from_mesh_object().
Definition at line 1016 of file mesh_convert.c.
References BKE_curve_texspace_calc(), BKE_displist_copy(), BKE_id_copy_ex(), BKE_object_free_modifiers(), curve, Object_Runtime::curve_cache, Object::data, Object_Runtime::data_eval, CurveCache::disp, Curve::editfont, Curve::editnurb, Object::id, LIB_ID_COPY_LOCALIZE, LIB_ID_CREATE_NO_USER_REFCOUNT, MEM_callocN, NULL, and Object::runtime.
Referenced by mesh_new_from_curve_type_object().
|
static |
Definition at line 725 of file mesh_convert.c.
References BLI_addhead(), VertLink::index, and MEM_callocN.
Referenced by BKE_mesh_to_curve_nurblist().
|
static |
Definition at line 1484 of file mesh_convert.c.
References BKE_keyblock_add(), Key::block, CD_SHAPEKEY, CLOG_ERROR, MVert::co, copy_v3_v3(), KDL::cos(), CustomData_get_layer_index_n(), CustomData_get_layer_n(), CustomData_number_of_layers(), KeyBlock::data, ListBase::first, float(), Mesh::key, LOG, MEM_calloc_arrayN, MEM_freeN, MEM_malloc_arrayN, Mesh::mvert, CustomDataLayer::name, KeyBlock::name, KeyBlock::next, KeyBlock::totelem, Mesh::totvert, CustomDataLayer::uid, and KeyBlock::uid.
Referenced by BKE_mesh_nomain_to_mesh().
|
static |
Definition at line 75 of file mesh_convert.c.
Referenced by add_shapekey_layers(), BKE_mesh_nomain_to_mesh(), and shapekey_layers_to_keyblocks().