Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_customdata_types.h"
#include "DNA_meshdata_types.h"
#include "BLI_bitmap.h"
#include "BLI_color.hh"
#include "BLI_endian_switch.h"
#include "BLI_index_range.hh"
#include "BLI_math.h"
#include "BLI_math_color_blend.h"
#include "BLI_math_vector.hh"
#include "BLI_mempool.h"
#include "BLI_path_util.h"
#include "BLI_span.hh"
#include "BLI_string.h"
#include "BLI_string_ref.hh"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "BLI_dynstr.h"
#include "BLT_translation.h"
#include "BKE_anonymous_attribute.h"
#include "BKE_customdata.h"
#include "BKE_customdata_file.h"
#include "BKE_deform.h"
#include "BKE_main.h"
#include "BKE_mesh_mapping.h"
#include "BKE_mesh_remap.h"
#include "BKE_multires.h"
#include "BKE_subsurf.h"
#include "BLO_read_write.h"
#include "bmesh.h"
#include "CLG_log.h"
#include "data_transfer_intern.h"
Go to the source code of this file.
Classes | |
struct | LayerTypeInfo |
struct | CustomDataUniqueCheckData |
Namespaces | |
blender | |
blender::bke | |
Macros | |
#define | DNA_DEPRECATED_ALLOW |
#define | CUSTOMDATA_GROW 5 |
#define | COPY_BIT_FLAG(_type, _dst, _src, _f) |
Functions | |
BLI_STATIC_ASSERT (ARRAY_SIZE(((CustomData *) nullptr) ->typemap)==CD_NUMTYPES, "size mismatch") | |
Mesh Mask Utilities | |
void | CustomData_MeshMasks_update (CustomData_MeshMasks *mask_dst, const CustomData_MeshMasks *mask_src) |
bool | CustomData_MeshMasks_are_matching (const CustomData_MeshMasks *mask_ref, const CustomData_MeshMasks *mask_required) |
Callbacks for (#MDeformVert, #CD_MDEFORMVERT) | |
static void | layerCopy_mdeformvert (const void *source, void *dest, int count) |
static void | layerFree_mdeformvert (void *data, int count, int size) |
static void | layerCopy_bmesh_elem_py_ptr (const void *UNUSED(source), void *dest, int count) |
void | bpy_bm_generic_invalidate (struct BPy_BMGeneric *UNUSED(self)) |
static void | layerFree_bmesh_elem_py_ptr (void *data, int count, int size) |
static void | layerInterp_mdeformvert (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (#vec3f, #CD_NORMAL) | |
static void | layerInterp_normal (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static void | layerCopyValue_normal (const void *source, void *dest, const int mixmode, const float mixfactor) |
Callbacks for (#MTFace, #CD_MTFACE) | |
static void | layerCopy_tface (const void *source, void *dest, int count) |
static void | layerInterp_tface (const void **sources, const float *weights, const float *sub_weights, int count, void *dest) |
static void | layerSwap_tface (void *data, const int *corner_indices) |
static void | layerDefault_tface (void *data, int count) |
static int | layerMaxNum_tface () |
Callbacks for (#MFloatProperty, #CD_PROP_FLOAT) | |
static void | layerCopy_propFloat (const void *source, void *dest, int count) |
static void | layerInterp_propFloat (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static bool | layerValidate_propFloat (void *data, const uint totitems, const bool do_fixes) |
Callbacks for (#MIntProperty, #CD_PROP_INT32) | |
static void | layerCopy_propInt (const void *source, void *dest, int count) |
static void | layerInterp_propInt (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (#MStringProperty, #CD_PROP_STRING) | |
static void | layerCopy_propString (const void *source, void *dest, int count) |
Callbacks for (#OrigSpaceFace, #CD_ORIGSPACE) | |
static void | layerCopy_origspace_face (const void *source, void *dest, int count) |
static void | layerInterp_origspace_face (const void **sources, const float *weights, const float *sub_weights, int count, void *dest) |
static void | layerSwap_origspace_face (void *data, const int *corner_indices) |
static void | layerDefault_origspace_face (void *data, int count) |
Callbacks for (#MDisps, #CD_MDISPS) | |
static void | layerSwap_mdisps (void *data, const int *ci) |
static void | layerCopy_mdisps (const void *source, void *dest, int count) |
static void | layerFree_mdisps (void *data, int count, int UNUSED(size)) |
static bool | layerRead_mdisps (CDataFile *cdf, void *data, int count) |
static bool | layerWrite_mdisps (CDataFile *cdf, const void *data, int count) |
static size_t | layerFilesize_mdisps (CDataFile *UNUSED(cdf), const void *data, int count) |
Callbacks for (<tt>float</tt>, #CD_PAINT_MASK) | |
static void | layerInterp_paint_mask (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (#GridPaintMask, #CD_GRID_PAINT_MASK) | |
static void | layerCopy_grid_paint_mask (const void *source, void *dest, int count) |
static void | layerFree_grid_paint_mask (void *data, int count, int UNUSED(size)) |
Callbacks for (#MLoopCol, #CD_PROP_BYTE_COLOR) | |
static void | layerCopyValue_mloopcol (const void *source, void *dest, const int mixmode, const float mixfactor) |
static bool | layerEqual_mloopcol (const void *data1, const void *data2) |
static void | layerMultiply_mloopcol (void *data, float fac) |
static void | layerAdd_mloopcol (void *data1, const void *data2) |
static void | layerDoMinMax_mloopcol (const void *data, void *vmin, void *vmax) |
static void | layerInitMinMax_mloopcol (void *vmin, void *vmax) |
static void | layerDefault_mloopcol (void *data, int count) |
static void | layerInterp_mloopcol (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (#MLoopUV, #CD_MLOOPUV) | |
static void | layerCopyValue_mloopuv (const void *source, void *dest, const int mixmode, const float mixfactor) |
static bool | layerEqual_mloopuv (const void *data1, const void *data2) |
static void | layerMultiply_mloopuv (void *data, float fac) |
static void | layerInitMinMax_mloopuv (void *vmin, void *vmax) |
static void | layerDoMinMax_mloopuv (const void *data, void *vmin, void *vmax) |
static void | layerAdd_mloopuv (void *data1, const void *data2) |
static void | layerInterp_mloopuv (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static bool | layerValidate_mloopuv (void *data, const uint totitems, const bool do_fixes) |
static void | layerCopyValue_mloop_origspace (const void *source, void *dest, const int UNUSED(mixmode), const float UNUSED(mixfactor)) |
static bool | layerEqual_mloop_origspace (const void *data1, const void *data2) |
static void | layerMultiply_mloop_origspace (void *data, float fac) |
static void | layerInitMinMax_mloop_origspace (void *vmin, void *vmax) |
static void | layerDoMinMax_mloop_origspace (const void *data, void *vmin, void *vmax) |
static void | layerAdd_mloop_origspace (void *data1, const void *data2) |
static void | layerInterp_mloop_origspace (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static void | layerInterp_mcol (const void **sources, const float *weights, const float *sub_weights, int count, void *dest) |
static void | layerSwap_mcol (void *data, const int *corner_indices) |
static void | layerDefault_mcol (void *data, int count) |
static void | layerDefault_origindex (void *data, int count) |
static void | layerInterp_bweight (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static void | layerInterp_shapekey (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (#MVertSkin, #CD_MVERT_SKIN) | |
static void | layerDefault_mvert_skin (void *data, int count) |
static void | layerCopy_mvert_skin (const void *source, void *dest, int count) |
static void | layerInterp_mvert_skin (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (<tt>short[4][3]</tt>, #CD_TESSLOOPNORMAL) | |
static void | layerSwap_flnor (void *data, const int *corner_indices) |
Callbacks for (<tt>int</tt>, #CD_FACEMAP) | |
static void | layerDefault_fmap (void *data, int count) |
Callbacks for (#MPropCol, #CD_PROP_COLOR) | |
static void | layerCopyValue_propcol (const void *source, void *dest, const int mixmode, const float mixfactor) |
static bool | layerEqual_propcol (const void *data1, const void *data2) |
static void | layerMultiply_propcol (void *data, float fac) |
static void | layerAdd_propcol (void *data1, const void *data2) |
static void | layerDoMinMax_propcol (const void *data, void *vmin, void *vmax) |
static void | layerInitMinMax_propcol (void *vmin, void *vmax) |
static void | layerDefault_propcol (void *data, int count) |
static void | layerInterp_propcol (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
Callbacks for (#vec3f, #CD_PROP_FLOAT3) | |
static void | layerInterp_propfloat3 (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static void | layerMultiply_propfloat3 (void *data, float fac) |
static void | layerAdd_propfloat3 (void *data1, const void *data2) |
static bool | layerValidate_propfloat3 (void *data, const uint totitems, const bool do_fixes) |
Callbacks for (#vec2f, #CD_PROP_FLOAT2) | |
static void | layerInterp_propfloat2 (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static void | layerMultiply_propfloat2 (void *data, float fac) |
static void | layerAdd_propfloat2 (void *data1, const void *data2) |
static bool | layerValidate_propfloat2 (void *data, const uint totitems, const bool do_fixes) |
External Files | |
static void | customdata_external_filename (char filepath[FILE_MAX], ID *id, CustomDataExternal *external) |
void | CustomData_external_reload (CustomData *data, ID *UNUSED(id), eCustomDataMask mask, int totelem) |
void | CustomData_external_read (CustomData *data, ID *id, eCustomDataMask mask, int totelem) |
void | CustomData_external_write (CustomData *data, ID *id, eCustomDataMask mask, int totelem, int free) |
void | CustomData_external_add (CustomData *data, ID *UNUSED(id), int type, int UNUSED(totelem), const char *filepath) |
void | CustomData_external_remove (CustomData *data, ID *id, int type, int totelem) |
bool | CustomData_external_test (CustomData *data, int type) |
Mesh-to-Mesh Data Transfer | |
static void | copy_bit_flag (void *dst, const void *src, const size_t data_size, const uint64_t flag) |
static bool | check_bit_flag (const void *data, const size_t data_size, const uint64_t flag) |
static void | customdata_data_transfer_interp_generic (const CustomDataTransferLayerMap *laymap, void *data_dst, const void **sources, const float *weights, const int count, const float mix_factor) |
void | customdata_data_transfer_interp_normal_normals (const CustomDataTransferLayerMap *laymap, void *data_dst, const void **sources, const float *weights, const int count, const float mix_factor) |
void | CustomData_data_transfer (const MeshPairRemap *me_remap, const CustomDataTransferLayerMap *laymap) |
Custom Data IO | |
static void | write_mdisps (BlendWriter *writer, int count, const MDisps *mdlist, int external) |
static void | write_grid_paint_mask (BlendWriter *writer, int count, const GridPaintMask *grid_paint_mask) |
void | CustomData_blend_write (BlendWriter *writer, CustomData *data, Span< CustomDataLayer > layers_to_write, int count, eCustomDataMask cddata_mask, ID *id) |
static void | blend_read_mdisps (BlendDataReader *reader, int count, MDisps *mdisps, int external) |
static void | blend_read_paint_mask (BlendDataReader *reader, int count, GridPaintMask *grid_paint_mask) |
void | CustomData_blend_read (BlendDataReader *reader, CustomData *data, int count) |
Custom Data Debugging | |
void | CustomData_debug_info_from_layers (const CustomData *data, const char *indent, DynStr *dynstr) |
Custom Data C++ API | |
const blender::CPPType * | blender::bke::custom_data_type_to_cpp_type (const eCustomDataType type) |
eCustomDataType | blender::bke::cpp_type_to_custom_data_type (const blender::CPPType &type) |
Variables | |
static CLG_LogRef | LOG = {"bke.customdata"} |
Callbacks for (<tt>bool</tt>, #CD_PROP_BOOL) | |
static const LayerTypeInfo | LAYERTYPEINFO [CD_NUMTYPES] |
static const char * | LAYERTYPENAMES [CD_NUMTYPES] |
const CustomData_MeshMasks | CD_MASK_BAREMESH |
const CustomData_MeshMasks | CD_MASK_BAREMESH_ORIGINDEX |
const CustomData_MeshMasks | CD_MASK_MESH |
const CustomData_MeshMasks | CD_MASK_DERIVEDMESH |
const CustomData_MeshMasks | CD_MASK_BMESH |
const CustomData_MeshMasks | CD_MASK_EVERYTHING |
static void | layerInterp_propbool (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
static const LayerTypeInfo * | layerType_getInfo (int type) |
static const char * | layerType_getName (int type) |
void | customData_mask_layers__print (const CustomData_MeshMasks *mask) |
Implementation of CustomData.
BKE_customdata.h contains the function prototypes for this file.
Definition in file customdata.cc.
#define COPY_BIT_FLAG | ( | _type, | |
_dst, | |||
_src, | |||
_f | |||
) |
#define CUSTOMDATA_GROW 5 |
Definition at line 66 of file customdata.cc.
#define DNA_DEPRECATED_ALLOW |
Definition at line 14 of file customdata.cc.
#define SOURCE_BUF_SIZE 100 |
Definition at line 3221 of file customdata.cc.
|
static |
Definition at line 5173 of file customdata.cc.
References BLI_endian_switch_float_array(), BLO_read_data_address, BLO_read_requires_endian_switch(), count, MDisps::disps, float(), MDisps::level, logf, M_LN2, sqrtf, and MDisps::totdisp.
Referenced by CustomData_blend_read().
|
static |
Definition at line 5201 of file customdata.cc.
References BLO_read_data_address, count, and GridPaintMask::data.
Referenced by CustomData_blend_read().
BLI_STATIC_ASSERT | ( | ARRAY_SIZE(((CustomData *) nullptr) ->typemap) | = =CD_NUMTYPES , |
"size mismatch" | |||
) |
void bpy_bm_generic_invalidate | ( | struct BPy_BMGeneric * | UNUSEDself | ) |
Definition at line 237 of file customdata.cc.
Referenced by BM_mesh_free(), and layerFree_bmesh_elem_py_ptr().
|
static |
Definition at line 4308 of file customdata.cc.
References CD_MASK_PROP_ALL, CD_TYPE_AS_MASK, data, CustomDataLayer::name, STREQ, type, and CustomDataLayer::type.
Referenced by customdata_unique_check().
|
static |
Definition at line 4820 of file customdata.cc.
References data.
Referenced by customdata_data_transfer_interp_generic().
|
static |
Definition at line 4789 of file customdata.cc.
References COPY_BIT_FLAG, and src.
Referenced by customdata_data_transfer_interp_generic().
void* CustomData_add_layer | ( | struct CustomData * | data, |
int | type, | ||
eCDAllocType | alloctype, | ||
void * | layer, | ||
int | totelem | ||
) |
Adds a data layer of the given type to the CustomData object, optionally backed by an external data array. the different allocation types are defined above. returns the data of the layer.
Definition at line 2776 of file customdata.cc.
References customData_add_layer__internal(), CustomData_update_typemap(), data, CustomDataLayer::data, LayerTypeInfo::defaultname, layerType_getInfo(), and type.
Referenced by blender::bke::add_builtin_type_custom_data_layer_from_init(), add_orco_mesh(), BKE_mesh_calc_edges(), BKE_mesh_calc_edges_legacy(), BKE_mesh_calc_edges_tessface(), BKE_mesh_ensure_facemap_customdata(), BKE_mesh_ensure_skin_customdata(), BKE_mesh_from_metaball(), BKE_mesh_from_pointcloud(), BKE_mesh_nomain_to_mesh(), BKE_mesh_orco_ensure(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remesh_reproject_paint_mask(), BKE_object_defgroup_data_create(), BKE_remesh_reproject_sculpt_face_sets(), BKE_sculpt_color_layer_create_if_needed(), BKE_sculpt_face_sets_ensure_from_base_mesh_visibility(), BKE_sculpt_mask_layers_ensure(), BM_data_layer_add(), BM_mesh_bm_from_me(), BM_mesh_bm_to_me(), BM_mesh_bm_to_me_for_eval(), ccgDM_get_edge_data_layer(), ccgDM_get_poly_data_layer(), ccgDM_get_vert_data_layer(), CDDM_copy(), convert_mfaces_to_mpolys(), copy_ccg_data(), customdata_version_242(), data_transfer_dtdata_type_postprocess(), data_transfer_dtdata_type_preprocess(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_cdlayers_multisrc_to_dst(), data_transfer_layersmapping_vgroups(), data_transfer_layersmapping_vgroups_multisrc_to_dst(), deformVerts(), DM_DupPolys(), dm_getEdgeArray(), dm_getLoopArray(), dm_getPolyArray(), dm_getVertArray(), dynamicPaint_Modifier_apply(), ED_mesh_join_objects_exec(), ED_object_facemap_face_add(), ED_object_modifier_convert_psys_to_mesh(), editbmesh_calc_modifiers(), ensure_corner_normal_layer(), ensure_orig_index_layer(), Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh(), hair_create_input_mesh(), mesh_add_edges(), mesh_add_loops(), mesh_add_polys(), mesh_add_verts(), mesh_calc_modifiers(), mesh_customdata_custom_splitnormals_add_exec(), mesh_ensure_cdlayers_primary(), mesh_set_custom_normals(), mesh_tessface_calc(), MOD_solidify_extrude_modifyMesh(), modifier_skin_armature_create(), modifyGeometry(), modifyMesh(), multires_create_grids_in_unsubdivided_base_mesh(), multires_ensure_external_read(), multires_subdivide_create_tangent_displacement_linear_grids(), multiresModifier_disp_run(), multiresModifier_subdivide_to_level(), normalEditModifier_do(), blender::io::alembic::read_generated_coordinates(), blender::io::alembic::read_vertex_creases(), SCULPT_dynamic_topology_disable_ex(), sculpt_face_sets_ensure(), skin_set_orig_indices(), and blender::io::stl::STLMeshHelper::to_mesh().
|
static |
Definition at line 2664 of file customdata.cc.
References BLI_assert, BLI_strncpy(), CD_ASSIGN, CD_DEFAULT, CD_DUPLICATE, CD_FLAG_NOFREE, CD_REFERENCE, LayerTypeInfo::copy, CustomData_get_layer_index(), CUSTOMDATA_GROW, CustomData_has_layer(), customData_resize(), CustomData_set_layer_unique_name(), customData_update_offsets(), data, DATA_, LayerTypeInfo::defaultname, ELEM, layerType_getInfo(), layerType_getName(), MEM_calloc_arrayN, MEM_freeN, MEM_malloc_arrayN, LayerTypeInfo::set_default, LayerTypeInfo::size, and type.
Referenced by CustomData_add_layer(), CustomData_add_layer_anonymous(), CustomData_add_layer_named(), and CustomData_merge().
void* CustomData_add_layer_anonymous | ( | CustomData * | data, |
int | type, | ||
eCDAllocType | alloctype, | ||
void * | layerdata, | ||
int | totelem, | ||
const AnonymousAttributeID * | anonymous_id | ||
) |
Definition at line 2810 of file customdata.cc.
References CustomDataLayer::anonymous_id, BKE_anonymous_attribute_id_increment_weak(), BKE_anonymous_attribute_id_internal_name(), customData_add_layer__internal(), CustomData_update_typemap(), data, CustomDataLayer::data, and type.
void* CustomData_add_layer_named | ( | struct CustomData * | data, |
int | type, | ||
eCDAllocType | alloctype, | ||
void * | layer, | ||
int | totelem, | ||
const char * | name | ||
) |
Same as above but accepts a name.
Definition at line 2792 of file customdata.cc.
References customData_add_layer__internal(), CustomData_update_typemap(), data, CustomDataLayer::data, and type.
Referenced by add_customdata_cb(), blender::io::alembic::add_customdata_cb(), blender::bke::add_generic_custom_data_layer(), add_shapekey_layers(), BKE_editmesh_loop_tangent_calc(), BKE_mesh_add_loop_tangent_named_layer_for_uv(), BKE_mesh_add_mface_layers(), BKE_mesh_calc_loop_tangent_ex(), BKE_mesh_new_nomain_from_curve_displist(), BKE_pointcloud_add_default(), BKE_pointcloud_new_nomain(), BKE_remesh_reproject_vertex_paint(), BM_data_layer_add_named(), BM_mesh_bm_from_me(), BM_mesh_copy_init_customdata_all_layers(), blender::bke::CurvesGeometry::CurvesGeometry(), CustomData_to_bmeshpoly(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_cdlayers_multisrc_to_dst(), dynamicPaint_Modifier_apply(), ED_mesh_color_add(), ED_mesh_color_ensure(), ED_mesh_sculpt_color_add(), ED_mesh_sculpt_color_ensure(), ED_mesh_uv_add(), Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh(), blender::ed::geometry::geometry_attribute_convert_exec(), blender::bke::get_mutable_attribute(), multires_unsubdivide_add_original_index_datalayers(), pointcloud_init_data(), blender::ed::curves::primitive_random_sphere(), sculpt_undo_set_active_layer(), and uvprojectModifier_do().
void CustomData_blend_read | ( | BlendDataReader * | reader, |
CustomData * | data, | ||
int | count | ||
) |
Definition at line 5215 of file customdata.cc.
References blend_read_mdisps(), blend_read_paint_mask(), BLO_read_data_address, CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CD_FLAG_NOFREE, CD_GRID_PAINT_MASK, CD_MDISPS, CLOG_WARN, count, CustomData_layer_ensure_data_exists(), CustomData_reset(), CustomData_update_typemap(), CustomData_verify_versions(), data, CustomDataLayer::data, CustomDataLayer::flag, LOG, CustomDataLayer::type, and UNLIKELY.
Referenced by curves_blend_read_data(), mesh_blend_read_data(), and pointcloud_blend_read_data().
void CustomData_blend_write | ( | BlendWriter * | writer, |
CustomData * | data, | ||
Span< CustomDataLayer > | layers_to_write, | ||
int | count, | ||
eCustomDataMask | cddata_mask, | ||
ID * | id | ||
) |
Definition at line 5108 of file customdata.cc.
References BKE_defvert_blend_write(), BLO_write_is_undo(), BLO_write_raw(), BLO_write_struct, BLO_write_struct_array_at_address, BLO_write_struct_array_by_name(), CD_CREASE, CD_FACEMAP, CD_FLAG_EXTERNAL, CD_GRID_PAINT_MASK, CD_MDEFORMVERT, CD_MDISPS, CD_PAINT_MASK, CD_PROP_BOOL, CD_SCULPT_FACE_SETS, count, CustomData_external_write(), CustomData_file_write_info(), blender::Span< T >::data(), data, write_grid_paint_mask(), and write_mdisps().
Referenced by curves_blend_write(), mesh_blend_write(), and pointcloud_blend_write().
void CustomData_blend_write_prepare | ( | CustomData & | data, |
Vector< CustomDataLayer, 16 > & | layers_to_write | ||
) |
Definition at line 4253 of file customdata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), CD_FLAG_NOCOPY, data, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by curves_blend_write(), mesh_blend_write(), and pointcloud_blend_write().
|
static |
Definition at line 3708 of file customdata.cc.
References BLI_mempool_alloc(), CustomData_bmesh_free_block(), and data.
Referenced by CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_set_default(), and CustomData_to_bmesh_block().
void CustomData_bmesh_copy_data | ( | const CustomData * | source, |
CustomData * | dest, | ||
void * | src_block, | ||
void ** | dest_block | ||
) |
Definition at line 3830 of file customdata.cc.
References CustomData_bmesh_copy_data_exclude_by_type(), and dest.
Referenced by CustomData_bmesh_merge().
void CustomData_bmesh_copy_data_exclude_by_type | ( | const CustomData * | source, |
CustomData * | dest, | ||
void * | src_block, | ||
void ** | dest_block, | ||
const eCustomDataMask | mask_exclude | ||
) |
Definition at line 3767 of file customdata.cc.
References CD_TYPE_AS_MASK, LayerTypeInfo::copy, CustomData_bmesh_alloc_block(), CustomData_bmesh_set_default_n(), dest, CustomData::layers, layerType_getInfo(), CustomDataLayer::name, CustomDataLayer::offset, POINTER_OFFSET, LayerTypeInfo::size, STREQ, CustomData::totlayer, and CustomDataLayer::type.
Referenced by CustomData_bmesh_copy_data().
void CustomData_bmesh_free_block | ( | CustomData * | data, |
void ** | block | ||
) |
Definition at line 3665 of file customdata.cc.
References BLI_mempool_free(), CD_FLAG_NOFREE, data, LayerTypeInfo::free, layerType_getInfo(), offset, POINTER_OFFSET, and LayerTypeInfo::size.
Referenced by bm_interp_face_free(), bm_kill_only_edge(), bm_kill_only_face(), bm_kill_only_loop(), bm_kill_only_vert(), BM_mesh_data_free(), CustomData_bmesh_alloc_block(), CustomData_bmesh_merge(), and update_data_blocks().
void CustomData_bmesh_free_block_data | ( | struct CustomData * | data, |
void * | block | ||
) |
Same as CustomData_bmesh_free_block but zero the memory rather than freeing.
Definition at line 3689 of file customdata.cc.
References CD_FLAG_NOFREE, data, LayerTypeInfo::free, layerType_getInfo(), offset, POINTER_OFFSET, and LayerTypeInfo::size.
Referenced by bm_data_interp_from_elem(), bm_loop_create(), and bmo_inset_region_exec().
void CustomData_bmesh_free_block_data_exclude_by_type | ( | struct CustomData * | data, |
void * | block, | ||
eCustomDataMask | mask_exclude | ||
) |
A selective version of CustomData_bmesh_free_block_data.
Definition at line 3722 of file customdata.cc.
References CD_FLAG_NOFREE, CD_TYPE_AS_MASK, data, LayerTypeInfo::free, layerType_getInfo(), offset, POINTER_OFFSET, and LayerTypeInfo::size.
Referenced by bm_edge_attrs_copy(), bm_face_attrs_copy(), bm_loop_attrs_copy(), and bm_vert_attrs_copy().
void* CustomData_bmesh_get | ( | const CustomData * | data, |
void * | block, | ||
int | type | ||
) |
Definition at line 3838 of file customdata.cc.
References CustomData_get_active_layer_index(), data, POINTER_OFFSET, and type.
Referenced by CustomData_bmesh_set().
void* CustomData_bmesh_get_layer_n | ( | const CustomData * | data, |
void * | block, | ||
int | n | ||
) |
Definition at line 3860 of file customdata.cc.
References data, and POINTER_OFFSET.
Referenced by CustomData_bmesh_set_layer_n().
void* CustomData_bmesh_get_n | ( | const CustomData * | data, |
void * | block, | ||
int | type, | ||
int | n | ||
) |
Definition at line 3849 of file customdata.cc.
References CustomData_get_layer_index(), data, POINTER_OFFSET, and type.
Referenced by CustomData_bmesh_set_n().
bool CustomData_bmesh_has_free | ( | const CustomData * | data | ) |
Definition at line 3904 of file customdata.cc.
References CD_FLAG_NOFREE, data, LayerTypeInfo::free, and layerType_getInfo().
void CustomData_bmesh_init_pool | ( | CustomData * | data, |
int | totelem, | ||
const char | htype | ||
) |
Definition at line 3541 of file customdata.cc.
References BLI_assert, BLI_assert_unreachable, BLI_mempool_create(), BLI_MEMPOOL_NOP, BM_EDGE, BM_FACE, BM_LOOP, bm_mesh_chunksize_default, BM_VERT, data, BMAllocTemplate::totedge, BMAllocTemplate::totface, BMAllocTemplate::totloop, and BMAllocTemplate::totvert.
Referenced by BM_mesh_bm_from_me(), BM_mesh_copy_init_customdata(), BM_mesh_copy_init_customdata_all_layers(), BM_mesh_copy_init_customdata_from_mesh_array(), CustomData_bmesh_merge(), and update_data_blocks().
void CustomData_bmesh_interp | ( | CustomData * | data, |
const void ** | src_blocks, | ||
const float * | weights, | ||
const float * | sub_weights, | ||
int | count, | ||
void * | dst_block | ||
) |
Definition at line 4088 of file customdata.cc.
References copy_vn_fl(), count, CustomData_bmesh_interp_n(), data, ELEM, LayerTypeInfo::interp, layerType_getInfo(), MEM_freeN, MEM_malloc_arrayN, MEM_mallocN, CustomDataLayer::offset, POINTER_OFFSET, SOURCE_BUF_SIZE, and CustomDataLayer::type.
Referenced by BM_data_interp_face_vert_edge(), bm_data_interp_from_elem(), BM_face_interp_from_face_ex(), BM_face_split_edgenet(), bm_grid_fill_array(), BM_loop_interp_from_face(), bm_loop_interp_from_grid_boundary_2(), bm_loop_interp_from_grid_boundary_4(), BM_vert_collapse_faces(), and BM_vert_interp_from_face().
void CustomData_bmesh_interp_n | ( | struct CustomData * | data, |
const void ** | src_blocks, | ||
const float * | weights, | ||
const float * | sub_weights, | ||
int | count, | ||
void * | dst_block_ofs, | ||
int | n | ||
) |
Definition at line 4071 of file customdata.cc.
References BLI_assert, count, data, LayerTypeInfo::interp, layerType_getInfo(), and CustomDataLayer::type.
Referenced by bm_edge_collapse_loop_customdata(), bm_vert_loop_groups_data_layer_merge__single(), bm_vert_loop_groups_data_layer_merge_weights__single(), and CustomData_bmesh_interp().
bool CustomData_bmesh_merge | ( | const CustomData * | source, |
CustomData * | dest, | ||
eCustomDataMask | mask, | ||
eCDAllocType | alloctype, | ||
BMesh * | bm, | ||
const char | htype | ||
) |
Definition at line 3573 of file customdata.cc.
References BLI_assert_msg, BLI_mempool_destroy(), bm, BM_EDGE, BM_EDGES_OF_MESH, BM_FACE, BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_LOOP, BM_LOOPS_OF_FACE, BM_VERT, BM_VERTS_OF_MESH, CustomData_bmesh_copy_data(), CustomData_bmesh_free_block(), CustomData_bmesh_init_pool(), CustomData_merge(), CustomData_number_of_layers_typemask(), BMHeader::data, dest, BMLoop::head, l, CustomData::layers, mask(), MEM_dupallocN, MEM_freeN, CustomData::pool, BMesh::totedge, BMesh::totface, BMesh::totloop, and BMesh::totvert.
void CustomData_bmesh_set | ( | const CustomData * | data, |
void * | block, | ||
int | type, | ||
const void * | source | ||
) |
Definition at line 4020 of file customdata.cc.
References LayerTypeInfo::copy, CustomData_bmesh_get(), data, dest, layerType_getInfo(), LayerTypeInfo::size, and type.
void CustomData_bmesh_set_default | ( | CustomData * | data, |
void ** | block | ||
) |
Definition at line 3756 of file customdata.cc.
References CustomData_bmesh_alloc_block(), CustomData_bmesh_set_default_n(), and data.
Referenced by BM_edge_create(), BM_face_create(), bm_loop_create(), BM_vert_create(), pbvh_bmesh_vert_create(), and update_data_blocks().
|
static |
Definition at line 3743 of file customdata.cc.
References data, layerType_getInfo(), offset, POINTER_OFFSET, LayerTypeInfo::set_default, and LayerTypeInfo::size.
Referenced by CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_set_default(), and CustomData_to_bmesh_block().
void CustomData_bmesh_set_layer_n | ( | struct CustomData * | data, |
void * | block, | ||
int | n, | ||
const void * | source | ||
) |
Sets the data of the block at physical layer n. no real type checking is performed.
Definition at line 4054 of file customdata.cc.
References LayerTypeInfo::copy, CustomData_bmesh_get_layer_n(), data, dest, layerType_getInfo(), and LayerTypeInfo::size.
void CustomData_bmesh_set_n | ( | CustomData * | data, |
void * | block, | ||
int | type, | ||
int | n, | ||
const void * | source | ||
) |
Definition at line 4037 of file customdata.cc.
References LayerTypeInfo::copy, CustomData_bmesh_get_n(), data, dest, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by BM_data_layer_copy().
void CustomData_bmesh_update_active_layers | ( | CustomData * | fdata, |
CustomData * | ldata | ||
) |
Definition at line 3508 of file customdata.cc.
References CD_MCOL, CD_MLOOPUV, CD_MTFACE, CD_PROP_BYTE_COLOR, CustomData_get_active_layer(), CustomData_get_clone_layer(), CustomData_get_render_layer(), CustomData_get_stencil_layer(), CustomData_has_layer(), CustomData_set_layer_active(), CustomData_set_layer_clone(), CustomData_set_layer_render(), and CustomData_set_layer_stencil().
Referenced by BKE_mesh_add_mface_layers(), and mesh_update_linked_customdata().
void CustomData_clear_layer_flag | ( | CustomData * | data, |
int | type, | ||
int | flag | ||
) |
Definition at line 2635 of file customdata.cc.
Referenced by mesh_wrapper_ensure_subdivision(), modifyMesh(), and triangulate_mesh().
void CustomData_copy | ( | const CustomData * | source, |
CustomData * | dest, | ||
eCustomDataMask | mask, | ||
eCDAllocType | alloctype, | ||
int | totelem | ||
) |
Definition at line 2323 of file customdata.cc.
References CustomData_merge(), CustomData_reset(), dest, CustomData::external, mask(), and MEM_dupallocN.
void CustomData_copy_data | ( | const CustomData * | source, |
CustomData * | dest, | ||
int | source_index, | ||
int | dest_index, | ||
int | count | ||
) |
Definition at line 3150 of file customdata.cc.
References count, CustomData_copy_data_layer(), dest, CustomData::layers, CustomData::totlayer, and CustomDataLayer::type.
void CustomData_copy_data_layer | ( | const CustomData * | source, |
CustomData * | dest, | ||
int | src_layer_index, | ||
int | dst_layer_index, | ||
int | src_index, | ||
int | dst_index, | ||
int | count | ||
) |
Definition at line 3094 of file customdata.cc.
References CLOG_WARN, LayerTypeInfo::copy, count, CustomDataLayer::data, dest, CustomData::layers, layerType_getInfo(), layerType_getName(), LOG, POINTER_OFFSET, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by CustomData_copy_data(), CustomData_copy_data_named(), and CustomData_copy_layer_type_data().
void CustomData_copy_data_named | ( | const CustomData * | source, |
CustomData * | dest, | ||
int | source_index, | ||
int | dest_index, | ||
int | count | ||
) |
Definition at line 3134 of file customdata.cc.
References count, CustomData_copy_data_layer(), CustomData_get_named_layer_index(), dest, CustomData::layers, CustomDataLayer::name, CustomData::totlayer, and CustomDataLayer::type.
Definition at line 3082 of file customdata.cc.
References LayerTypeInfo::copy, count, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by bm_vert_loop_groups_data_layer_merge__single(), and bm_vert_loop_groups_data_layer_merge_weights__single().
void CustomData_copy_layer_type_data | ( | const CustomData * | source, |
CustomData * | destination, | ||
int | type, | ||
int | source_index, | ||
int | destination_index, | ||
int | count | ||
) |
Definition at line 3182 of file customdata.cc.
References count, CustomData_copy_data_layer(), CustomData_get_layer_index(), and type.
Definition at line 4011 of file customdata.cc.
References LayerTypeInfo::add, data1, data2, layerType_getInfo(), and type.
Referenced by bmo_average_vert_facedata_exec(), bmo_collapsecon_do_layer(), bmo_pointmerge_facedata_exec(), and blender::geometry::customdata_weld().
Copies the "value" (e.g. mloopuv uv or mloopcol colors) from one block to another, while not overwriting anything else (e.g. flags). probably only implemented for mloopuv/mloopcol, for now.
Definition at line 3939 of file customdata.cc.
References CDT_MIX_NOMIX, LayerTypeInfo::copyvalue, dest, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by bm_loop_customdata_merge(), bmo_average_vert_facedata_exec(), and bmo_collapsecon_do_layer().
Definition at line 3993 of file customdata.cc.
References data, LayerTypeInfo::dominmax, layerType_getInfo(), max, min, and type.
Referenced by bmo_average_vert_facedata_exec(), and bmo_collapsecon_do_layer().
Compares if data1 is equal to data2. type is a valid CustomData type enum (e.g. CD_MLOOPUV). the layer type's equal function is used to compare the data, if it exists, otherwise #memcmp is used.
Definition at line 3973 of file customdata.cc.
References data1, data2, LayerTypeInfo::equal, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by bm_edge_collapse_loop_customdata(), BM_edge_is_contiguous_loop_cd(), bm_loop_customdata_merge(), bm_loop_walk_data(), bmw_UVEdgeWalker_step(), and contig_ldata_across_loops().
Definition at line 3984 of file customdata.cc.
References LayerTypeInfo::initminmax, layerType_getInfo(), max, min, and type.
Referenced by bmo_average_vert_facedata_exec(), and bmo_collapsecon_do_layer().
void CustomData_data_mix_value | ( | int | type, |
const void * | source, | ||
void * | dest, | ||
int | mixmode, | ||
float | mixfactor | ||
) |
Mixes the "value" (e.g. mloopuv uv or mloopcol colors) from one block into another, while not overwriting anything else (e.g. flags).
Definition at line 3955 of file customdata.cc.
References LayerTypeInfo::copyvalue, dest, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by bm_loop_customdata_merge(), customdata_data_transfer_interp_generic(), and customdata_data_transfer_interp_normal_normals().
Definition at line 4002 of file customdata.cc.
References data, layerType_getInfo(), LayerTypeInfo::multiply, and type.
Referenced by bmo_average_vert_facedata_exec(), bmo_collapsecon_do_layer(), bmo_pointmerge_facedata_exec(), and blender::geometry::customdata_weld().
void CustomData_data_transfer | ( | const MeshPairRemap * | me_remap, |
const CustomDataTransferLayerMap * | laymap | ||
) |
Definition at line 4988 of file customdata.cc.
References CD_FAKE, customdata_data_transfer_interp_generic(), CustomDataTransferLayerMap::data_dst, CustomDataTransferLayerMap::data_offset, CustomDataTransferLayerMap::data_size, CustomDataTransferLayerMap::data_src, CustomDataTransferLayerMap::data_type, CustomDataTransferLayerMap::elem_size, MeshPairRemapItem::indices_src, interp(), CustomDataTransferLayerMap::interp, MeshPairRemap::items, MeshPairRemap::items_num, layerType_getInfo(), MEM_malloc_arrayN, MEM_reallocN, MEM_SAFE_FREE, CustomDataTransferLayerMap::mix_factor, CustomDataTransferLayerMap::mix_weights, POINTER_OFFSET, LayerTypeInfo::size, MeshPairRemapItem::sources_num, UNLIKELY, and MeshPairRemapItem::weights_src.
|
static |
Definition at line 4837 of file customdata.cc.
References BLI_assert, CD_FAKE, CDT_MIX_REPLACE_ABOVE_THRESHOLD, CDT_MIX_REPLACE_BELOW_THRESHOLD, CDT_MIX_TRANSFER, check_bit_flag(), LayerTypeInfo::copy, copy_bit_flag(), count, CustomData_data_mix_value(), CustomDataTransferLayerMap::data_flag, CustomDataTransferLayerMap::data_size, CustomDataTransferLayerMap::data_type, LayerTypeInfo::interp, layerType_getInfo(), MEM_freeN, MEM_mallocN, CustomDataTransferLayerMap::mix_mode, and LayerTypeInfo::size.
Referenced by CustomData_data_transfer().
void customdata_data_transfer_interp_normal_normals | ( | const CustomDataTransferLayerMap * | laymap, |
void * | data_dst, | ||
const void ** | sources, | ||
const float * | weights, | ||
int | count, | ||
float | mix_factor | ||
) |
Normals are special, we need to take care of source & destination spaces.
Definition at line 4952 of file customdata.cc.
References BLI_assert, BLI_space_transform_invert_normal(), CD_NORMAL, count, CustomData_data_mix_value(), CustomDataTransferLayerMap::data_type, LayerTypeInfo::interp, CustomDataTransferLayerMap::interp_data, layerType_getInfo(), and CustomDataTransferLayerMap::mix_mode.
Referenced by data_transfer_layersmapping_generate().
void CustomData_debug_info_from_layers | ( | const CustomData * | data, |
const char * | indent, | ||
DynStr * | dynstr | ||
) |
Definition at line 5276 of file customdata.cc.
References BLI_dynstr_appendf(), CD_NUMTYPES, CustomData_file_write_info(), CustomData_get_layer(), CustomData_has_layer(), CustomData_layertype_name(), CustomData_sizeof(), data, MEM_allocN_len, size(), and type.
void* CustomData_duplicate_referenced_layer | ( | struct CustomData * | data, |
int | type, | ||
int | totelem | ||
) |
Duplicate data of a layer with flag NOFREE, and remove that flag.
Definition at line 2976 of file customdata.cc.
References customData_duplicate_referenced_layer_index(), CustomData_get_active_layer_index(), data, and type.
Referenced by blender::nodes::node_geo_set_material_cc::assign_material_to_faces(), BKE_mesh_transform(), BKE_mesh_translate(), BKE_mesh_vert_coords_apply(), BKE_mesh_vert_coords_apply_with_mat4(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_vgroups(), blender::nodes::node_geo_extrude_mesh_cc::expand_mesh(), mesh_calc_hq_normal(), blender::nodes::node_geo_flip_faces_cc::mesh_flip_faces(), MOD_solidify_extrude_modifyMesh(), modifyMesh(), normalEditModifier_do(), blender::nodes::node_geo_scale_elements_cc::scale_edges_on_axis(), blender::nodes::node_geo_scale_elements_cc::scale_edges_uniformly(), blender::nodes::node_geo_scale_elements_cc::scale_faces_on_axis(), blender::nodes::node_geo_scale_elements_cc::scale_faces_uniformly(), blender::bke::VertexGroupsAttributeProvider::try_delete(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), and blender::bke::VertexGroupsAttributeProvider::try_get_for_write().
void* CustomData_duplicate_referenced_layer_anonymous | ( | CustomData * | data, |
const int | UNUSEDtype, | ||
const AnonymousAttributeID * | anonymous_id, | ||
const int | totelem | ||
) |
Definition at line 3006 of file customdata.cc.
References BLI_assert_unreachable, customData_duplicate_referenced_layer_index(), and data.
|
static |
Definition at line 2943 of file customdata.cc.
References CD_FLAG_NOFREE, LayerTypeInfo::copy, data, CustomDataLayer::data, CustomDataLayer::flag, layerType_getInfo(), MEM_dupallocN, MEM_malloc_arrayN, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by CustomData_duplicate_referenced_layer(), CustomData_duplicate_referenced_layer_anonymous(), CustomData_duplicate_referenced_layer_n(), CustomData_duplicate_referenced_layer_named(), and CustomData_duplicate_referenced_layers().
void* CustomData_duplicate_referenced_layer_n | ( | CustomData * | data, |
const int | type, | ||
const int | n, | ||
const int | totelem | ||
) |
Definition at line 2984 of file customdata.cc.
References customData_duplicate_referenced_layer_index(), CustomData_get_layer_index_n(), data, and type.
Referenced by data_transfer_layersmapping_cdlayers(), and data_transfer_layersmapping_cdlayers_multisrc_to_dst().
void* CustomData_duplicate_referenced_layer_named | ( | CustomData * | data, |
const int | type, | ||
const char * | name, | ||
const int | totelem | ||
) |
Definition at line 2995 of file customdata.cc.
References customData_duplicate_referenced_layer_index(), CustomData_get_named_layer_index(), data, and type.
Referenced by blender::bke::get_mutable_attribute(), modifyMesh(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), blender::bke::CustomDataAttributeProvider::try_get_for_write(), blender::bke::NamedLegacyCustomDataProvider::try_get_for_write(), and uvprojectModifier_do().
void CustomData_duplicate_referenced_layers | ( | CustomData * | data, |
int | totelem | ||
) |
Duplicate all the layers with flag NOFREE, and remove the flag from duplicated layers.
Definition at line 3020 of file customdata.cc.
References customData_duplicate_referenced_layer_index(), data, and CustomDataLayer::data.
Referenced by BKE_mesh_split_faces(), blender::nodes::node_geo_extrude_mesh_cc::expand_mesh(), and blender::bke::CurvesGeometry::reverse_curves().
void CustomData_external_add | ( | CustomData * | data, |
ID * | UNUSEDid, | ||
int | type, | ||
int | UNUSEDtotelem, | ||
const char * | filepath | ||
) |
Definition at line 4723 of file customdata.cc.
References BLI_strncpy(), CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CustomData_get_active_layer_index(), data, CustomDataExternal::filepath, CustomDataLayer::flag, and type.
|
static |
Definition at line 4518 of file customdata.cc.
References BLI_path_abs(), BLI_strncpy(), FILE_MAX, CustomDataExternal::filepath, and ID_BLEND_PATH_FROM_GLOBAL.
Referenced by CustomData_external_read(), and CustomData_external_write().
|
static |
Definition at line 2359 of file customdata.cc.
References data, and MEM_freeN.
Referenced by CustomData_free(), and CustomData_free_typemask().
void CustomData_external_read | ( | CustomData * | data, |
ID * | id, | ||
eCustomDataMask | mask, | ||
int | totelem | ||
) |
Definition at line 4547 of file customdata.cc.
References CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CD_TYPE_AS_MASK, cdf_create(), cdf_free(), cdf_layer_find(), cdf_read_close(), cdf_read_layer(), cdf_read_open(), CDF_TYPE_MESH, CLOG_ERROR, customdata_external_filename(), data, CustomDataLayer::data, FILE_MAX, CustomDataLayer::flag, layerType_getInfo(), layerType_getName(), LOG, mask(), CustomDataLayer::name, LayerTypeInfo::read, CustomDataLayer::type, and update().
Referenced by convert_mfaces_to_mpolys(), CustomData_external_remove(), CustomData_external_write(), multires_ensure_external_read(), and multires_topology_changed().
void CustomData_external_reload | ( | CustomData * | data, |
ID * | UNUSEDid, | ||
eCustomDataMask | mask, | ||
int | totelem | ||
) |
Definition at line 4526 of file customdata.cc.
References CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CD_TYPE_AS_MASK, data, CustomDataLayer::data, CustomDataLayer::flag, LayerTypeInfo::free, layerType_getInfo(), mask(), LayerTypeInfo::size, and CustomDataLayer::type.
void CustomData_external_remove | ( | CustomData * | data, |
ID * | id, | ||
int | type, | ||
int | totelem | ||
) |
Definition at line 4748 of file customdata.cc.
References CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CD_TYPE_AS_MASK, CustomData_external_read(), CustomData_get_active_layer_index(), data, CustomDataLayer::flag, type, and CustomDataLayer::type.
Referenced by multires_customdata_delete(), and multires_external_pack_exec().
bool CustomData_external_test | ( | CustomData * | data, |
int | type | ||
) |
Definition at line 4772 of file customdata.cc.
References CD_FLAG_EXTERNAL, CustomData_get_active_layer_index(), data, CustomDataLayer::flag, and type.
Referenced by bm_corners_to_loops_ex(), multires_ensure_external_read(), multires_external_pack_exec(), multires_external_save_exec(), and multires_external_save_invoke().
void CustomData_external_write | ( | CustomData * | data, |
ID * | id, | ||
eCustomDataMask | mask, | ||
int | totelem, | ||
int | free | ||
) |
Definition at line 4620 of file customdata.cc.
References CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CD_TYPE_AS_MASK, cdf_create(), cdf_free(), cdf_layer_add(), cdf_layer_find(), CDF_TYPE_MESH, cdf_write_close(), cdf_write_layer(), cdf_write_open(), CLOG_ERROR, customdata_external_filename(), CustomData_external_read(), data, CustomDataLayer::data, FILE_MAX, LayerTypeInfo::filesize, CustomDataLayer::flag, free(), LayerTypeInfo::free, layerType_getInfo(), LOG, mask(), CustomDataLayer::name, LayerTypeInfo::size, CustomDataLayer::type, update(), and LayerTypeInfo::write.
Referenced by CustomData_blend_write(), and multires_external_save_exec().
void CustomData_file_write_info | ( | int | type, |
const char ** | r_struct_name, | ||
int * | r_struct_num | ||
) |
Query info over types.
Definition at line 4245 of file customdata.cc.
References layerType_getInfo(), LayerTypeInfo::structname, LayerTypeInfo::structnum, and type.
Referenced by CustomData_blend_write(), CustomData_debug_info_from_layers(), and CustomData_layers__print().
void CustomData_free | ( | struct CustomData * | data, |
int | totelem | ||
) |
Frees data associated with a CustomData object (doesn't free the object itself, though).
Definition at line 2373 of file customdata.cc.
References CustomData_external_free(), customData_free_layer__internal(), CustomData_reset(), data, and MEM_freeN.
Referenced by BKE_mesh_calc_edges(), BKE_mesh_calc_edges_tessface(), BKE_mesh_nomain_to_mesh(), BKE_pointcloud_new_for_eval(), BM_mesh_bm_to_me(), BM_mesh_data_free(), blender::bke::CustomDataAttributes::clear(), convert_mfaces_to_mpolys(), blender::bke::copy_curves_geometry(), DM_DupPolys(), DM_release(), ED_mesh_join_objects_exec(), blender::draw::extract_tan_ex_init(), blender::draw::extract_tan_init_subdiv(), loop_interpolation_end(), mesh_add_edges(), mesh_add_loops(), mesh_add_polys(), mesh_add_verts(), mesh_clear_geometry(), mesh_tessface_calc(), mesh_tessface_clear_intern(), blender::bke::move_curves_geometry(), pointcloud_free_data(), SCULPT_dynamic_topology_disable_ex(), sculpt_undo_geometry_free_data(), sculpt_undo_geometry_restore_data(), vertex_interpolation_end(), blender::bke::CurvesGeometry::~CurvesGeometry(), and blender::bke::CustomDataAttributes::~CustomDataAttributes().
void CustomData_free_elem | ( | struct CustomData * | data, |
int | index, | ||
int | count | ||
) |
Frees data in a CustomData object.
Definition at line 3206 of file customdata.cc.
References CD_FLAG_NOFREE, count, data, LayerTypeInfo::free, layerType_getInfo(), offset, POINTER_OFFSET, and LayerTypeInfo::size.
Referenced by BKE_mesh_strip_loose_edges(), BKE_mesh_strip_loose_faces(), BKE_mesh_strip_loose_polysloops(), loop_interpolation_from_corner(), mesh_remove_edges(), mesh_remove_loops(), mesh_remove_polys(), and mesh_remove_verts().
bool CustomData_free_layer | ( | struct CustomData * | data, |
int | type, | ||
int | totelem, | ||
int | index | ||
) |
Frees the active or first data layer with the give type. returns 1 on success, 0 if no layer with the given type is found
In edit-mode, use #EDBM_data_layer_free instead of this function.
Definition at line 2831 of file customdata.cc.
References CustomDataLayer::active, CustomDataLayer::active_clone, CustomDataLayer::active_mask, CustomDataLayer::active_rnd, BLI_assert, customData_free_layer__internal(), CustomData_get_layer_index(), CustomData_get_layer_index__notypemap(), CUSTOMDATA_GROW, customData_resize(), customData_update_offsets(), data, type, and CustomDataLayer::type.
Referenced by BKE_mesh_from_pointcloud(), BKE_object_facemap_clear(), BM_data_layer_free_n(), copy_ccg_data(), CustomData_free_layer_active(), CustomData_free_layer_named(), CustomData_free_layers(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_cdlayers_multisrc_to_dst(), delete_customdata_layer(), mesh_validate_customdata(), multires_unsubdivide_free_original_datalayers(), blender::bke::CustomDataAttributes::remove(), blender::bke::BuiltinCustomDataLayerProvider::try_delete(), blender::bke::CustomDataAttributeProvider::try_delete(), and blender::bke::NamedLegacyCustomDataProvider::try_delete().
|
static |
Definition at line 2338 of file customdata.cc.
References CustomDataLayer::anonymous_id, BKE_anonymous_attribute_id_decrement_weak(), CD_FLAG_NOFREE, CustomDataLayer::data, CustomDataLayer::flag, LayerTypeInfo::free, layerType_getInfo(), MEM_freeN, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by CustomData_free(), CustomData_free_layer(), CustomData_free_temporary(), and CustomData_free_typemask().
bool CustomData_free_layer_active | ( | struct CustomData * | data, |
int | type, | ||
int | totelem | ||
) |
Frees the layer index with the give type. returns 1 on success, 0 if no layer with the given type is found.
In edit-mode, use #EDBM_data_layer_free instead of this function.
Definition at line 2895 of file customdata.cc.
References CustomData_free_layer(), CustomData_get_active_layer_index(), data, and type.
Referenced by BKE_object_defgroup_remove_all_ex(), blo_do_versions_250(), BM_data_layer_free(), modifier_skin_customdata_delete(), multires_customdata_delete(), and object_defgroup_remove_common().
bool CustomData_free_layer_named | ( | CustomData * | data, |
const char * | name, | ||
const int | totelem | ||
) |
Definition at line 2883 of file customdata.cc.
References CustomData_free_layer(), data, CustomDataLayer::name, and CustomDataLayer::type.
Referenced by BM_data_layer_free_named(), blender::bke::CurvesGeometry::remove_attributes_based_on_types(), and blender::bke::BuiltinCustomDataLayerProvider::try_delete().
void CustomData_free_layers | ( | struct CustomData * | data, |
int | type, | ||
int | totelem | ||
) |
Same as above, but free all layers with type.
Definition at line 2904 of file customdata.cc.
References CustomData_free_layer(), CustomData_get_layer_index(), data, and type.
Referenced by BKE_mesh_clear_facemap_customdata(), BKE_mesh_split_faces(), blo_do_versions_260(), blo_do_versions_280(), BLO_update_defaults_startup_blend(), editbmesh_calc_modifier_final_normals(), geometry_extract_apply(), mesh_calc_modifier_final_normals(), mesh_calc_modifiers(), mesh_customdata_clear_exec__internal(), multires_create_grids_in_unsubdivided_base_mesh(), and paint_mask_slice_exec().
void CustomData_free_temporary | ( | struct CustomData * | data, |
int | totelem | ||
) |
Frees all layers with CD_FLAG_TEMPORARY.
Definition at line 3041 of file customdata.cc.
References CD_FLAG_TEMPORARY, customData_free_layer__internal(), CUSTOMDATA_GROW, customData_resize(), customData_update_offsets(), data, and CustomDataLayer::flag.
Referenced by DM_release().
void CustomData_free_typemask | ( | struct CustomData * | data, |
int | totelem, | ||
eCustomDataMask | mask | ||
) |
Same as above, but only frees layers which matches the given mask.
Definition at line 2387 of file customdata.cc.
References CD_TYPE_AS_MASK, CustomData_external_free(), customData_free_layer__internal(), CustomData_reset(), data, mask(), MEM_freeN, and CustomDataLayer::type.
Referenced by BKE_mesh_nomain_to_mesh().
void CustomData_from_bmesh_block | ( | const CustomData * | source, |
CustomData * | dest, | ||
void * | src_block, | ||
int | dest_index | ||
) |
Definition at line 4200 of file customdata.cc.
References LayerTypeInfo::copy, dest, CustomData::layers, layerType_getInfo(), offset, CustomDataLayer::offset, POINTER_OFFSET, LayerTypeInfo::size, CustomData::totlayer, and CustomDataLayer::type.
void* CustomData_get | ( | const CustomData * | data, |
int | index, | ||
int | type | ||
) |
Definition at line 3346 of file customdata.cc.
References BLI_assert, CustomData_get_active_layer_index(), data, layerType_getInfo(), offset, POINTER_OFFSET, LayerTypeInfo::size, and type.
Referenced by CustomData_set().
int CustomData_get_active_layer | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2507 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_update_active_layers().
int CustomData_get_active_layer_index | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2468 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_get(), CustomData_duplicate_referenced_layer(), CustomData_external_add(), CustomData_external_remove(), CustomData_external_test(), CustomData_free_layer_active(), CustomData_get(), CustomData_get_active_layer_name(), CustomData_get_layer(), CustomData_get_offset(), CustomData_is_referenced_layer(), CustomData_set_layer(), and CustomData_validate_layer_name().
const char* CustomData_get_active_layer_name | ( | const CustomData * | data, |
const int | type | ||
) |
Definition at line 2535 of file customdata.cc.
References CustomData_get_active_layer_index(), data, and type.
int CustomData_get_clone_layer | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2521 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_update_active_layers().
int CustomData_get_clone_layer_index | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2482 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
void* CustomData_get_layer | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 3376 of file customdata.cc.
References CustomData_get_active_layer_index(), data, and type.
Referenced by CustomData_debug_info_from_layers().
int CustomData_get_layer_index | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2436 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by customData_add_layer__internal(), CustomData_bmesh_get_n(), CustomData_copy_layer_type_data(), CustomData_free_layer(), CustomData_free_layers(), CustomData_get_layer_index_n(), and CustomData_has_layer().
|
static |
Definition at line 2422 of file customdata.cc.
Referenced by CustomData_free_layer().
int CustomData_get_layer_index_n | ( | const CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2442 of file customdata.cc.
References BLI_assert, CustomData_get_layer_index(), data, and type.
Referenced by CustomData_duplicate_referenced_layer_n(), CustomData_get_layer_n(), CustomData_get_layer_name(), CustomData_get_n_offset(), CustomData_set_layer_n(), and CustomData_set_layer_name().
void* CustomData_get_layer_n | ( | const CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 3387 of file customdata.cc.
References CustomData_get_layer_index_n(), data, and type.
const char* CustomData_get_layer_name | ( | const CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 3455 of file customdata.cc.
References CustomData_get_layer_index_n(), data, and type.
void* CustomData_get_layer_named | ( | const CustomData * | data, |
int | type, | ||
const char * | name | ||
) |
Definition at line 3398 of file customdata.cc.
References CustomData_get_named_layer_index(), data, and type.
void* CustomData_get_n | ( | const CustomData * | data, |
int | type, | ||
int | index, | ||
int | n | ||
) |
Definition at line 3362 of file customdata.cc.
References BLI_assert, data, layerType_getInfo(), offset, POINTER_OFFSET, LayerTypeInfo::size, and type.
int CustomData_get_n_offset | ( | const CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 3430 of file customdata.cc.
References CustomData_get_layer_index_n(), data, and type.
int CustomData_get_named_layer | ( | const CustomData * | data, |
int | type, | ||
const char * | name | ||
) |
Definition at line 2499 of file customdata.cc.
References BLI_assert, CustomData_get_named_layer_index(), customdata_typemap_is_valid(), data, and type.
int CustomData_get_named_layer_index | ( | const CustomData * | data, |
int | type, | ||
const char * | name | ||
) |
Definition at line 2455 of file customdata.cc.
References data, STREQ, and type.
Referenced by CustomData_copy_data_named(), CustomData_duplicate_referenced_layer_named(), CustomData_get_layer_named(), CustomData_get_named_layer(), CustomData_get_offset_named(), CustomData_merge(), and CustomData_validate_layer_name().
int CustomData_get_offset | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 3408 of file customdata.cc.
References CustomData_get_active_layer_index(), data, and type.
int CustomData_get_offset_named | ( | const CustomData * | data, |
int | type, | ||
const char * | name | ||
) |
Definition at line 3419 of file customdata.cc.
References CustomData_get_named_layer_index(), data, and type.
Referenced by bake_targets_output_vertex_colors().
int CustomData_get_render_layer | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2514 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_update_active_layers().
int CustomData_get_render_layer_index | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2475 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
int CustomData_get_stencil_layer | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2528 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_update_active_layers().
int CustomData_get_stencil_layer_index | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2489 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
bool CustomData_has_interp | ( | const CustomData * | data | ) |
Definition at line 3917 of file customdata.cc.
References CustomData_layer_has_interp(), and data.
bool CustomData_has_layer | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2912 of file customdata.cc.
References CustomData_get_layer_index(), data, and type.
Referenced by customData_add_layer__internal(), CustomData_bmesh_update_active_layers(), and CustomData_debug_info_from_layers().
bool CustomData_has_math | ( | const CustomData * | data | ) |
Definition at line 3892 of file customdata.cc.
References CustomData_layer_has_math(), and data.
bool CustomData_has_referenced | ( | const CustomData * | data | ) |
Definition at line 3929 of file customdata.cc.
References CD_FLAG_NOFREE, and data.
void CustomData_interp | ( | const CustomData * | source, |
CustomData * | dest, | ||
const int * | src_indices, | ||
const float * | weights, | ||
const float * | sub_weights, | ||
int | count, | ||
int | dest_index | ||
) |
Definition at line 3223 of file customdata.cc.
References copy_vn_fl(), count, CustomDataLayer::data, dest, ELEM, LayerTypeInfo::interp, CustomData::layers, layerType_getInfo(), MEM_freeN, MEM_malloc_arrayN, MEM_mallocN, POINTER_OFFSET, LayerTypeInfo::size, SOURCE_BUF_SIZE, CustomData::totlayer, and CustomDataLayer::type.
bool CustomData_is_referenced_layer | ( | CustomData * | data, |
int | type | ||
) |
Definition at line 3028 of file customdata.cc.
References CD_FLAG_NOFREE, CustomData_get_active_layer_index(), data, CustomDataLayer::flag, and type.
|
static |
Definition at line 4434 of file customdata.cc.
References BLI_assert, CD_MLOOPUV, CD_PROP_BOOL, CLOG_WARN, count, CustomDataLayer::data, layerType_getInfo(), layerType_getName(), LOG, MEM_calloc_arrayN, LayerTypeInfo::set_default, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by CustomData_blend_read(), and CustomData_layer_validate().
bool CustomData_layer_has_interp | ( | const CustomData * | data, |
int | layer_n | ||
) |
Definition at line 3881 of file customdata.cc.
References data, LayerTypeInfo::interp, and layerType_getInfo().
Referenced by CustomData_has_interp().
bool CustomData_layer_has_math | ( | const CustomData * | data, |
int | layer_n | ||
) |
Definition at line 3869 of file customdata.cc.
References LayerTypeInfo::add, data, LayerTypeInfo::dominmax, LayerTypeInfo::equal, LayerTypeInfo::initminmax, layerType_getInfo(), and LayerTypeInfo::multiply.
Referenced by CustomData_has_math().
bool CustomData_layer_validate | ( | struct CustomDataLayer * | layer, |
uint | totitems, | ||
bool | do_fixes | ||
) |
Validate and fix data of layer, if possible (needs relevant callback in layer's type to be defined).
Definition at line 4468 of file customdata.cc.
References BLI_assert, CustomData_layer_ensure_data_exists(), CustomDataLayer::data, layerType_getInfo(), MEM_allocN_len, LayerTypeInfo::size, CustomDataLayer::type, and LayerTypeInfo::validate.
Referenced by mesh_validate_customdata().
void CustomData_layers__print | ( | CustomData * | data | ) |
Definition at line 4488 of file customdata.cc.
References CustomData_file_write_info(), CustomData_layertype_name(), CustomData_sizeof(), data, CustomDataLayer::data, MEM_allocN_len, size(), and CustomDataLayer::type.
bool CustomData_layertype_is_dynamic | ( | int | type | ) |
Has dynamically allocated members. This is useful to know if operations such as #memcmp are valid when comparing data from two layers.
Definition at line 4286 of file customdata.cc.
References LayerTypeInfo::free, layerType_getInfo(), and type.
Referenced by um_arraystore_cd_compact().
bool CustomData_layertype_is_singleton | ( | int | type | ) |
Can only ever be one of these.
Definition at line 4280 of file customdata.cc.
References LayerTypeInfo::defaultname, layerType_getInfo(), and type.
Referenced by bpy_bmlayercollection_is_singleton_get(), bpy_bmlayercollection_new(), data_transfer_layersmapping_cdlayers(), mesh_customdata_clear_exec__internal(), and mesh_validate_customdata().
int CustomData_layertype_layers_max | ( | int | type | ) |
Definition at line 4293 of file customdata.cc.
References LayerTypeInfo::defaultname, LayerTypeInfo::layers_max, layerType_getInfo(), and type.
Referenced by CustomData_merge().
const char* CustomData_layertype_name | ( | int | type | ) |
Get the name of a layer type.
Definition at line 4275 of file customdata.cc.
References layerType_getName(), and type.
Referenced by CustomData_debug_info_from_layers(), and CustomData_layers__print().
void customData_mask_layers__print | ( | const CustomData_MeshMasks * | mask | ) |
Definition at line 2140 of file customdata.cc.
References CD_NUMTYPES, CD_TYPE_AS_MASK, layerType_getName(), mask(), and PRIx64.
bool CustomData_merge | ( | const CustomData * | source, |
CustomData * | dest, | ||
eCustomDataMask | mask, | ||
eCDAllocType | alloctype, | ||
int | totelem | ||
) |
Definition at line 2220 of file customdata.cc.
References CustomDataLayer::active, CustomDataLayer::active_clone, CustomDataLayer::active_mask, CustomDataLayer::active_rnd, CustomDataLayer::anonymous_id, BKE_anonymous_attribute_id_increment_weak(), CD_ASSIGN, CD_DUPLICATE, CD_FLAG_COLOR_ACTIVE, CD_FLAG_COLOR_RENDER, CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CD_FLAG_NOCOPY, CD_FLAG_NOFREE, CD_REFERENCE, CD_TYPE_AS_MASK, customData_add_layer__internal(), CustomData_get_named_layer_index(), CustomData_layertype_layers_max(), CustomData_update_typemap(), data, CustomDataLayer::data, dest, CustomDataLayer::flag, CustomData::layers, mask(), CustomDataLayer::name, CustomData::totlayer, type, CustomDataLayer::type, and CustomDataLayer::uid.
Referenced by CustomData_bmesh_merge(), and CustomData_copy().
bool CustomData_MeshMasks_are_matching | ( | const CustomData_MeshMasks * | mask_ref, |
const CustomData_MeshMasks * | mask_required | ||
) |
Return True if all layers set in mask_required are also set in mask_ref
Definition at line 87 of file customdata.cc.
References CustomData_MeshMasks::emask, CustomData_MeshMasks::fmask, CustomData_MeshMasks::lmask, CustomData_MeshMasks::pmask, and CustomData_MeshMasks::vmask.
Referenced by BKE_object_data_transfer_ex(), editbmesh_get_eval_cage(), mesh_get_eval_deform(), and mesh_get_eval_final().
void CustomData_MeshMasks_update | ( | CustomData_MeshMasks * | mask_dst, |
const CustomData_MeshMasks * | mask_src | ||
) |
Update mask_dst with layers defined in mask_src (equivalent to a bit-wise OR).
Definition at line 77 of file customdata.cc.
References CustomData_MeshMasks::emask, CustomData_MeshMasks::fmask, CustomData_MeshMasks::lmask, CustomData_MeshMasks::pmask, and CustomData_MeshMasks::vmask.
Referenced by BKE_modifier_calc_data_masks(), BKE_object_handle_data_update(), BM_mesh_bm_from_me(), BM_mesh_bm_to_me(), BM_mesh_bm_to_me_for_eval(), duplibase_for_convert(), ED_view3d_screen_datamask(), editbmesh_calc_modifiers(), mesh_calc_modifiers(), mesh_copy_data(), mesh_get_eval_deform(), mesh_get_eval_final(), object_convert_exec(), screen_opengl_render_init(), and wm_event_do_depsgraph().
int CustomData_number_of_layers | ( | const CustomData * | data, |
int | type | ||
) |
Definition at line 2917 of file customdata.cc.
int CustomData_number_of_layers_typemask | ( | const CustomData * | data, |
eCustomDataMask | mask | ||
) |
Definition at line 2930 of file customdata.cc.
References CD_TYPE_AS_MASK, data, and mask().
Referenced by CustomData_bmesh_merge().
void CustomData_realloc | ( | struct CustomData * | data, |
int | totelem | ||
) |
Reallocate custom data to a new element count. Only affects on data layers which are owned by the CustomData itself, referenced data is kept unchanged,
Definition at line 2307 of file customdata.cc.
References BLI_assert, CD_FLAG_NOFREE, data, CustomDataLayer::data, CustomDataLayer::flag, layerType_getInfo(), MEM_recallocN, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by BKE_mesh_split_faces(), BKE_pointcloud_from_mesh(), BKE_pointcloud_new_nomain(), blender::nodes::node_geo_extrude_mesh_cc::expand_mesh(), pointcloud_random(), blender::bke::CustomDataAttributes::reallocate(), and blender::bke::CurvesGeometry::resize().
void CustomData_reset | ( | struct CustomData * | data | ) |
NULL's all members and resets the CustomData.typemap.
Definition at line 2367 of file customdata.cc.
References CD_NUMTYPES, copy_vn_i(), and data.
Referenced by BKE_id_attribute_copy_domains_temp(), BKE_mesh_calc_edges(), BKE_mesh_calc_edges_tessface(), BKE_mesh_nomain_to_mesh(), BM_mesh_clear(), BM_mesh_create(), blender::bke::CurvesGeometry::CurvesGeometry(), CustomData_blend_read(), CustomData_copy(), CustomData_free(), CustomData_free_typemask(), blender::bke::CustomDataAttributes::CustomDataAttributes(), ED_mesh_join_objects_exec(), blender::draw::extract_tan_init_common(), mesh_init_data(), mesh_tessface_clear_intern(), and pointcloud_init_data().
|
static |
Definition at line 2646 of file customdata.cc.
References data, MEM_calloc_arrayN, and MEM_freeN.
Referenced by customData_add_layer__internal(), CustomData_free_layer(), and CustomData_free_temporary().
void CustomData_set | ( | const CustomData * | data, |
int | index, | ||
int | type, | ||
const void * | source | ||
) |
Definition at line 3489 of file customdata.cc.
References LayerTypeInfo::copy, CustomData_get(), data, dest, layerType_getInfo(), LayerTypeInfo::size, and type.
void* CustomData_set_layer | ( | const CustomData * | data, |
int | type, | ||
void * | ptr | ||
) |
Definition at line 3462 of file customdata.cc.
References CustomData_get_active_layer_index(), data, ptr, and type.
void CustomData_set_layer_active | ( | struct CustomData * | data, |
int | type, | ||
int | n | ||
) |
Sets the nth layer of type as active.
Definition at line 2542 of file customdata.cc.
Referenced by CustomData_bmesh_do_versions_update_active_layers(), CustomData_bmesh_update_active_layers(), ED_mesh_color_add(), ED_mesh_sculpt_color_add(), ED_mesh_uv_add(), and Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh().
void CustomData_set_layer_active_index | ( | struct CustomData * | data, |
int | type, | ||
int | n | ||
) |
For using with an index from CustomData_get_active_layer_index and CustomData_get_render_layer_index.
Definition at line 2578 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by BKE_editmesh_loop_tangent_calc(), and BKE_mesh_calc_loop_tangent_ex().
void CustomData_set_layer_clone | ( | CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2560 of file customdata.cc.
Referenced by BKE_mesh_validate_all_customdata(), CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
void CustomData_set_layer_clone_index | ( | CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2602 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
void CustomData_set_layer_flag | ( | struct CustomData * | data, |
int | type, | ||
int | flag | ||
) |
Adds flag to the layer flags.
Definition at line 2626 of file customdata.cc.
Referenced by BKE_mesh_remap_calc_loops_from_mesh(), BM_custom_loop_normals_to_vector_layer(), data_transfer_dtdata_type_preprocess(), dm_getEdgeArray(), dm_getLoopArray(), dm_getPolyArray(), dm_getVertArray(), ensure_corner_normal_layer(), mesh_wrapper_ensure_subdivision(), modifyMesh(), and triangulate_mesh().
void* CustomData_set_layer_n | ( | const CustomData * | data, |
int | type, | ||
int | n, | ||
void * | ptr | ||
) |
Definition at line 3476 of file customdata.cc.
References CustomData_get_layer_index_n(), data, ptr, and type.
bool CustomData_set_layer_name | ( | const CustomData * | data, |
int | type, | ||
int | n, | ||
const char * | name | ||
) |
Definition at line 3441 of file customdata.cc.
References BLI_strncpy(), CustomData_get_layer_index_n(), data, and type.
void CustomData_set_layer_render | ( | CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2551 of file customdata.cc.
Referenced by CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
void CustomData_set_layer_render_index | ( | CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2590 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by BKE_editmesh_loop_tangent_calc(), and BKE_mesh_calc_loop_tangent_ex().
void CustomData_set_layer_stencil | ( | CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2569 of file customdata.cc.
Referenced by BKE_mesh_validate_all_customdata(), CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
void CustomData_set_layer_stencil_index | ( | CustomData * | data, |
int | type, | ||
int | n | ||
) |
Definition at line 2614 of file customdata.cc.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
void CustomData_set_layer_unique_name | ( | struct CustomData * | data, |
int | index | ||
) |
Make sure the name of layer at index is unique.
Definition at line 4343 of file customdata.cc.
References BLI_uniquename_cb(), customdata_unique_check(), data, DATA_, LayerTypeInfo::defaultname, layerType_getInfo(), CustomDataLayer::name, STRNCPY, and CustomDataLayer::type.
Referenced by customData_add_layer__internal().
void CustomData_set_only_copy | ( | const CustomData * | data, |
eCustomDataMask | mask | ||
) |
Definition at line 3073 of file customdata.cc.
References CD_FLAG_NOCOPY, CD_TYPE_AS_MASK, data, and mask().
int CustomData_sizeof | ( | int | type | ) |
Definition at line 4268 of file customdata.cc.
References layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by BKE_remesh_reproject_vertex_paint(), bm_edge_delimit_cdata(), BM_mesh_decimate_dissolve_ex(), BM_vert_loop_groups_data_layer_merge(), BM_vert_loop_groups_data_layer_merge_weights(), CustomData_debug_info_from_layers(), CustomData_layers__print(), blender::geometry::customdata_weld(), um_arraystore_cd_compact(), um_arraystore_cd_expand(), and um_arraystore_cd_free().
void CustomData_swap | ( | struct CustomData * | data, |
int | index_a, | ||
int | index_b | ||
) |
Swap two items of given custom data, in all available layers.
Definition at line 3319 of file customdata.cc.
References data, layerType_getInfo(), MEM_freeN, MEM_mallocN, POINTER_OFFSET, size(), and LayerTypeInfo::size.
Referenced by BKE_mesh_polygon_flip_ex().
void CustomData_swap_corners | ( | struct CustomData * | data, |
int | index, | ||
const int * | corner_indices | ||
) |
Swap data inside each item, for all layers. This only applies to item types that may store several sub-item data (e.g. corner data [UVs, VCol, ...] of tessellated faces).
corner_indices | A mapping 'new_index -> old_index' of sub-item data. |
Definition at line 3306 of file customdata.cc.
References data, layerType_getInfo(), offset, POINTER_OFFSET, LayerTypeInfo::size, and LayerTypeInfo::swap.
Referenced by BKE_mesh_mface_index_validate().
void CustomData_to_bmesh_block | ( | const CustomData * | source, |
CustomData * | dest, | ||
int | src_index, | ||
void ** | dest_block, | ||
bool | use_default_init | ||
) |
Definition at line 4139 of file customdata.cc.
References LayerTypeInfo::copy, CustomData_bmesh_alloc_block(), CustomData_bmesh_set_default_n(), CustomDataLayer::data, dest, if(), CustomData::layers, layerType_getInfo(), offset, POINTER_OFFSET, LayerTypeInfo::size, CustomData::totlayer, and CustomDataLayer::type.
|
static |
Definition at line 2212 of file customdata.cc.
References CustomData_update_typemap(), data, and CustomData::typemap.
Referenced by CustomData_get_active_layer(), CustomData_get_active_layer_index(), CustomData_get_clone_layer(), CustomData_get_clone_layer_index(), CustomData_get_layer_index(), CustomData_get_named_layer(), CustomData_get_render_layer(), CustomData_get_render_layer_index(), CustomData_get_stencil_layer(), CustomData_get_stencil_layer_index(), CustomData_set_layer_active_index(), CustomData_set_layer_clone_index(), CustomData_set_layer_render_index(), and CustomData_set_layer_stencil_index().
Definition at line 4337 of file customdata.cc.
References cd_layer_find_dupe(), CustomDataUniqueCheckData::data, CustomDataUniqueCheckData::index, and CustomDataUniqueCheckData::type.
Referenced by CustomData_set_layer_unique_name().
|
static |
Definition at line 2405 of file customdata.cc.
References CustomData_update_typemap(), data, layerType_getInfo(), offset, and LayerTypeInfo::size.
Referenced by customData_add_layer__internal(), CustomData_free_layer(), and CustomData_free_temporary().
void CustomData_update_typemap | ( | CustomData * | data | ) |
Definition at line 2193 of file customdata.cc.
References CD_NUMTYPES, data, and type.
Referenced by BKE_editmesh_loop_tangent_calc(), BKE_mesh_from_pointcloud(), blo_do_versions_260(), blo_do_versions_280(), CustomData_add_layer(), CustomData_add_layer_anonymous(), CustomData_add_layer_named(), CustomData_blend_read(), CustomData_merge(), customdata_typemap_is_valid(), customData_update_offsets(), and blender::bke::CustomDataAttributes::reorder().
void CustomData_validate_layer_name | ( | const CustomData * | data, |
int | type, | ||
const char * | name, | ||
char * | outname | ||
) |
Definition at line 4364 of file customdata.cc.
References BLI_strncpy(), CustomData_get_active_layer_index(), CustomData_get_named_layer_index(), data, MAX_CUSTOMDATA_LAYER_NAME, and type.
bool CustomData_verify_versions | ( | struct CustomData * | data, |
int | index | ||
) |
For file reading compatibility, returns false if the layer was freed, only after this test passes, layer->data
should be assigned.
Definition at line 4388 of file customdata.cc.
References CD_CREASE, CD_FACEMAP, CD_NUMTYPES, CD_PAINT_MASK, CD_SCULPT_FACE_SETS, CLOG_WARN, data, LayerTypeInfo::defaultname, ELEM, layerType_getInfo(), LOG, LayerTypeInfo::structnum, and CustomDataLayer::type.
Referenced by CustomData_blend_read().
Definition at line 1132 of file customdata.cc.
References add_v2_v2(), data1, data2, and OrigSpaceLoop::uv.
Definition at line 880 of file customdata.cc.
References MLoopCol::a, MLoopCol::b, data1, data2, MLoopCol::g, and MLoopCol::r.
Definition at line 1038 of file customdata.cc.
References add_v2_v2(), data1, data2, and MLoopUV::uv.
Definition at line 1432 of file customdata.cc.
References add_v4_v4(), MPropCol::color, data1, and data2.
|
static |
Definition at line 226 of file customdata.cc.
References count, dest, POINTER_OFFSET, ptr, and size().
Definition at line 765 of file customdata.cc.
References count, data, dest, GridPaintMask::level, and MEM_dupallocN.
Definition at line 190 of file customdata.cc.
References count, dest, MDeformVert::dw, MEM_malloc_arrayN, POINTER_OFFSET, size(), and MDeformVert::totweight.
Definition at line 655 of file customdata.cc.
References count, dest, MDisps::level, MEM_dupallocN, and MDisps::totdisp.
Definition at line 1298 of file customdata.cc.
Definition at line 561 of file customdata.cc.
Definition at line 480 of file customdata.cc.
Definition at line 523 of file customdata.cc.
Definition at line 550 of file customdata.cc.
Definition at line 409 of file customdata.cc.
|
static |
Definition at line 1089 of file customdata.cc.
References copy_v2_v2(), dest, and OrigSpaceLoop::uv.
|
static |
Definition at line 798 of file customdata.cc.
References MLoopCol::a, MLoopCol::b, blend_color_add_byte(), blend_color_interpolate_byte(), blend_color_mix_byte(), blend_color_mul_byte(), blend_color_sub_byte(), CDT_MIX_ADD, CDT_MIX_MIX, CDT_MIX_MUL, CDT_MIX_NOMIX, CDT_MIX_REPLACE_ABOVE_THRESHOLD, CDT_MIX_REPLACE_BELOW_THRESHOLD, CDT_MIX_SUB, dest, ELEM, float(), MLoopCol::g, MLoopCol::r, and src.
|
static |
Definition at line 987 of file customdata.cc.
References CDT_MIX_NOMIX, copy_v2_v2(), dest, interp_v2_v2v2(), and MLoopUV::uv.
|
static |
Definition at line 366 of file customdata.cc.
References add_v3_v3v3(), CDT_MIX_ADD, CDT_MIX_MIX, CDT_MIX_MUL, CDT_MIX_NOMIX, CDT_MIX_REPLACE_ABOVE_THRESHOLD, CDT_MIX_REPLACE_BELOW_THRESHOLD, CDT_MIX_SUB, copy_v3_v3(), dest, ELEM, interp_v3_v3v3_slerp_safe(), mul_v3_v3v3(), normalize_v3(), and sub_v3_v3v3().
|
static |
Definition at line 1364 of file customdata.cc.
References blend_color_add_float(), blend_color_interpolate_float(), blend_color_mix_float(), blend_color_mul_float(), blend_color_sub_float(), CDT_MIX_ADD, CDT_MIX_MIX, CDT_MIX_MUL, CDT_MIX_NOMIX, CDT_MIX_REPLACE_ABOVE_THRESHOLD, CDT_MIX_REPLACE_BELOW_THRESHOLD, CDT_MIX_SUB, MPropCol::color, copy_v4_v4(), dest, and ELEM.
Definition at line 1350 of file customdata.cc.
Definition at line 1220 of file customdata.cc.
Definition at line 939 of file customdata.cc.
Definition at line 1288 of file customdata.cc.
References copy_v3_fl(), count, data, and MVertSkin::flag.
Definition at line 1230 of file customdata.cc.
References copy_vn_i(), count, data, and ORIGINDEX_NONE.
Definition at line 609 of file customdata.cc.
Definition at line 1456 of file customdata.cc.
References MPropCol::color, color, copy_v4_v4(), count, and data.
Definition at line 459 of file customdata.cc.
Definition at line 1123 of file customdata.cc.
References data, max, min, minmax_v2v2_v2(), and OrigSpaceLoop::uv.
Definition at line 891 of file customdata.cc.
References MLoopCol::a, MLoopCol::b, data, MLoopCol::g, max, min, and MLoopCol::r.
Definition at line 1029 of file customdata.cc.
References data, max, min, minmax_v2v2_v2(), and MLoopUV::uv.
Definition at line 1439 of file customdata.cc.
References MPropCol::color, data, max, min, and minmax_v4v4_v4().
Definition at line 1100 of file customdata.cc.
References data1, data2, len_squared_v2v2(), and OrigSpaceLoop::uv.
Definition at line 856 of file customdata.cc.
References Freestyle::a, MLoopCol::a, usdtokens::b(), MLoopCol::b, data1, data2, usdtokens::g(), MLoopCol::g, r, and MLoopCol::r.
Definition at line 1006 of file customdata.cc.
References data1, data2, len_squared_v2v2(), and MLoopUV::uv.
Definition at line 1412 of file customdata.cc.
References Freestyle::c, MPropCol::color, data1, and data2.
Definition at line 726 of file customdata.cc.
Definition at line 243 of file customdata.cc.
References bpy_bm_generic_invalidate(), count, data, POINTER_OFFSET, ptr, and size().
Definition at line 782 of file customdata.cc.
References count, data, GridPaintMask::level, and MEM_SAFE_FREE.
Definition at line 212 of file customdata.cc.
References count, data, MDeformVert::dw, MEM_freeN, POINTER_OFFSET, size(), and MDeformVert::totweight.
Definition at line 676 of file customdata.cc.
Definition at line 1115 of file customdata.cc.
References INIT_MINMAX2, max, and min.
Definition at line 923 of file customdata.cc.
Definition at line 1021 of file customdata.cc.
References INIT_MINMAX2, max, and min.
Definition at line 1447 of file customdata.cc.
References copy_v4_fl(), max, and min.
|
static |
Definition at line 1235 of file customdata.cc.
|
static |
Definition at line 1160 of file customdata.cc.
References Freestyle::a, MCol::a, usdtokens::b(), MCol::b, col, count, dest, usdtokens::g(), MCol::g, r, MCol::r, round_fl_to_uchar_clamp(), src, and w().
|
static |
Definition at line 253 of file customdata.cc.
References count, MDeformWeight::def_nr, dest, MDeformVert::dw, MEM_freeN, MEM_malloc_arrayN, next, node, MDeformVert::totweight, and MDeformWeight::weight.
|
static |
Definition at line 1140 of file customdata.cc.
References copy_v2_v2(), count, dest, madd_v2_v2fl(), src, and zero_v2().
|
static |
Definition at line 948 of file customdata.cc.
References Freestyle::a, MLoopCol::a, usdtokens::b(), MLoopCol::b, col, count, dest, usdtokens::g(), MLoopCol::g, r, MLoopCol::r, round_fl_to_uchar_clamp(), and src.
|
static |
Definition at line 1046 of file customdata.cc.
References copy_v2_v2(), count, dest, madd_v2_v2fl(), src, and zero_v2().
|
static |
Definition at line 1303 of file customdata.cc.
References copy_v3_v3(), count, dest, MVertSkin::flag, madd_v3_v3fl(), MVERT_SKIN_ROOT, MVertSkin::radius, and zero_v3().
|
static |
Definition at line 347 of file customdata.cc.
References count, dest, madd_v3_v3fl(), and normalize_v3_v3().
|
static |
Definition at line 571 of file customdata.cc.
References count, dest, madd_v2_v2fl(), src, and OrigSpaceFace::uv.
|
static |
Definition at line 1466 of file customdata.cc.
References col, MPropCol::color, copy_v4_v4(), count, dest, madd_v4_v4fl(), and src.
|
static |
Definition at line 1541 of file customdata.cc.
References copy_v2_v2(), count, dest, madd_v2_v2fl(), result, and src.
|
static |
Definition at line 1488 of file customdata.cc.
References copy_v3_v3(), count, dest, madd_v3_v3fl(), result, and src.
|
static |
Definition at line 1258 of file customdata.cc.
References copy_v3_v3(), count, dest, madd_v3_v3fl(), and zero_v3().
|
static |
Definition at line 418 of file customdata.cc.
References count, dest, madd_v2_v2fl(), src, and MTFace::uv.
|
static |
Definition at line 469 of file customdata.cc.
References MAX_MTFACE.
Definition at line 1108 of file customdata.cc.
References data, mul_v2_fl(), and OrigSpaceLoop::uv.
Definition at line 870 of file customdata.cc.
References MLoopCol::a, MLoopCol::b, data, float(), MLoopCol::g, and MLoopCol::r.
Definition at line 1014 of file customdata.cc.
References data, mul_v2_fl(), and MLoopUV::uv.
Definition at line 1426 of file customdata.cc.
References MPropCol::color, data, and mul_v4_fl().
Definition at line 1556 of file customdata.cc.
Definition at line 694 of file customdata.cc.
References cdf_read_data(), CLOG_ERROR, count, data, float(), LOG, and MEM_calloc_arrayN.
Definition at line 1331 of file customdata.cc.
References copy_v3_v3_short(), and data.
Definition at line 1208 of file customdata.cc.
Definition at line 625 of file customdata.cc.
References data, MDisps::disps, float(), MEM_calloc_arrayN, MEM_freeN, multires_mdisp_corners(), and MDisps::totdisp.
Definition at line 598 of file customdata.cc.
References copy_v2_v2(), data, and OrigSpaceFace::uv.
Definition at line 446 of file customdata.cc.
References copy_v2_v2(), data, and MTFace::uv.
|
static |
Definition at line 2122 of file customdata.cc.
References CD_NUMTYPES, LAYERTYPEINFO, and type.
Referenced by CustomData_add_layer(), customData_add_layer__internal(), CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_free_block(), CustomData_bmesh_free_block_data(), CustomData_bmesh_free_block_data_exclude_by_type(), CustomData_bmesh_has_free(), CustomData_bmesh_interp(), CustomData_bmesh_interp_n(), CustomData_bmesh_set(), CustomData_bmesh_set_default_n(), CustomData_bmesh_set_layer_n(), CustomData_bmesh_set_n(), CustomData_copy_data_layer(), CustomData_copy_elements(), CustomData_data_add(), CustomData_data_copy_value(), CustomData_data_dominmax(), CustomData_data_equals(), CustomData_data_initminmax(), CustomData_data_mix_value(), CustomData_data_multiply(), CustomData_data_transfer(), customdata_data_transfer_interp_generic(), customdata_data_transfer_interp_normal_normals(), customData_duplicate_referenced_layer_index(), CustomData_external_read(), CustomData_external_reload(), CustomData_external_write(), CustomData_file_write_info(), CustomData_free_elem(), customData_free_layer__internal(), CustomData_from_bmesh_block(), CustomData_get(), CustomData_get_n(), CustomData_interp(), CustomData_layer_ensure_data_exists(), CustomData_layer_has_interp(), CustomData_layer_has_math(), CustomData_layer_validate(), CustomData_layertype_is_dynamic(), CustomData_layertype_is_singleton(), CustomData_layertype_layers_max(), CustomData_realloc(), CustomData_set(), CustomData_set_layer_unique_name(), CustomData_sizeof(), CustomData_swap(), CustomData_swap_corners(), CustomData_to_bmesh_block(), customData_update_offsets(), and CustomData_verify_versions().
|
static |
Definition at line 2131 of file customdata.cc.
References CD_NUMTYPES, LAYERTYPENAMES, and type.
Referenced by customData_add_layer__internal(), CustomData_copy_data_layer(), CustomData_external_read(), CustomData_layer_ensure_data_exists(), CustomData_layertype_name(), and customData_mask_layers__print().
Definition at line 1071 of file customdata.cc.
References data, is_finite_v2(), MLoopUV::uv, and zero_v2().
|
static |
Definition at line 500 of file customdata.cc.
References data, MFloatProperty::f, and CCL_NAMESPACE_BEGIN::isfinite().
|
static |
Definition at line 1571 of file customdata.cc.
References data, and CCL_NAMESPACE_BEGIN::isfinite().
|
static |
Definition at line 1520 of file customdata.cc.
References data, and CCL_NAMESPACE_BEGIN::isfinite().
Definition at line 712 of file customdata.cc.
References cdf_write_data(), CLOG_ERROR, count, data, and LOG.
|
static |
Definition at line 5092 of file customdata.cc.
References BKE_ccg_gridsize(), BLO_write_raw(), BLO_write_struct_array, count, GridPaintMask::data, and GridPaintMask::level.
Referenced by CustomData_blend_write().
|
static |
Definition at line 5073 of file customdata.cc.
References BLI_BITMAP_SIZE, BLO_write_float3_array(), BLO_write_raw(), BLO_write_struct_array, count, MDisps::disps, MDisps::hidden, and MDisps::totdisp.
Referenced by CustomData_blend_write().
const CustomData_MeshMasks CD_MASK_BAREMESH |
Definition at line 2051 of file customdata.cc.
Referenced by add_verts_to_dgroups(), BKE_crazyspace_get_first_deform_matrices_editbmesh(), BKE_crazyspace_get_mapped_editverts(), BKE_editmesh_vert_coords_alloc(), BKE_multires_create_mesh(), BKE_object_data_transfer_ex(), BKE_object_data_transfer_layout(), BKE_object_handle_data_update(), bvh_get_mesh(), dt_layers_select_src_itemf(), ED_mesh_pick_vert(), ED_mesh_shapes_join_objects_exec(), ED_view3d_screen_datamask(), editbmesh_calc_modifiers(), knifeproject_poly_from_object(), mesh_foreachScreenEdge(), mesh_foreachScreenEdge_clip_bb_segment(), mesh_foreachScreenFace(), mesh_foreachScreenVert(), meshobject_foreachScreenVert(), modifier_skin_armature_create(), multires_modifier_update_mdisps(), multires_reshape_create_subdiv(), multiresbake_create_hiresdm(), multiresbake_create_loresdm(), multiresModifier_reshapeFromObject(), object_force_modifier_update_for_bind(), paint_sample_color(), particle_intersect_mesh(), pointdensity_cache_object(), and vgroup_fix().
const CustomData_MeshMasks CD_MASK_BAREMESH_ORIGINDEX |
Definition at line 2058 of file customdata.cc.
Referenced by ED_mesh_pick_face_vert(), mesh_calc_modifiers(), vpaint_proj_dm_map_cosnos_init(), and vpaint_proj_dm_map_cosnos_update().
const CustomData_MeshMasks CD_MASK_BMESH |
Definition at line 2090 of file customdata.cc.
Referenced by BM_mesh_bm_from_me(), BM_mesh_copy_init_customdata(), BM_mesh_copy_init_customdata_from_mesh_array(), and bpy_bmesh_from_object().
const CustomData_MeshMasks CD_MASK_DERIVEDMESH |
Definition at line 2077 of file customdata.cc.
Referenced by BM_mesh_bm_to_me_for_eval(), DM_DupPolys(), DM_from_template(), and mesh_copy_data().
const CustomData_MeshMasks CD_MASK_EVERYTHING |
Definition at line 2101 of file customdata.cc.
Referenced by BKE_mesh_new_nomain_from_template(), blender::io::obj::MeshFromGeometry::create_mesh(), geometry_extract_apply(), loop_interpolation_init(), blender::io::alembic::AbcMeshReader::readObjectData(), blender::io::alembic::AbcSubDReader::readObjectData(), subdiv_mesh_topology_info(), and vertex_interpolation_init().
const CustomData_MeshMasks CD_MASK_MESH |
Definition at line 2065 of file customdata.cc.
Referenced by bc_get_mesh_copy(), BKE_mesh_new_from_object_to_bmain(), BKE_mesh_to_curve(), BKE_mesh_to_pointcloud(), BKE_mesh_validate_all_customdata(), BM_mesh_bm_to_me(), CDDM_from_mesh(), blender::io::alembic::ABCHairWriter::do_write(), duplibase_for_convert(), join_mesh_single(), mesh_add_edges(), mesh_add_loops(), mesh_add_polys(), mesh_add_verts(), mesh_blend_write(), mesh_copy_data(), mesh_new_from_mesh_object_with_layers(), modifier_apply_obdata(), multires_external_save_exec(), multiresModifier_rebuild_subdiv(), object_convert_exec(), paint_mask_slice_exec(), quadriflow_start_job(), blender::io::usd::USDMeshReader::read_object_data(), blender::io::alembic::AbcPointsReader::readObjectData(), SCULPT_dynamic_topology_disable_ex(), sculpt_gesture_apply_trim(), sculpt_undo_geometry_restore_data(), sculpt_undo_geometry_store_data(), and voxel_remesh_exec().
|
static |
Definition at line 1607 of file customdata.cc.
Referenced by layerType_getInfo().
|
static |
Definition at line 1994 of file customdata.cc.
Referenced by layerType_getName().
|
static |
Definition at line 71 of file customdata.cc.
Referenced by CustomData_blend_read(), CustomData_copy_data_layer(), CustomData_external_read(), CustomData_external_write(), CustomData_layer_ensure_data_exists(), CustomData_verify_versions(), layerRead_mdisps(), and layerWrite_mdisps().