|
Blender
V2.93
|
#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_customdata_types.h"#include "DNA_hair_types.h"#include "DNA_meshdata_types.h"#include "BLI_bitmap.h"#include "BLI_endian_switch.h"#include "BLI_math.h"#include "BLI_math_color_blend.h"#include "BLI_mempool.h"#include "BLI_path_util.h"#include "BLI_string.h"#include "BLI_string_utils.h"#include "BLI_utildefines.h"#include "BLT_translation.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 |
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define | CUSTOMDATA_GROW 5 |
| #define | SOURCE_BUF_SIZE 100 |
| #define | LAYER_CMP(l_a, t_a, l_b, t_b) |
| #define | COPY_BIT_FLAG(_type, _dst, _src, _f) |
Typedefs | |
| typedef struct LayerTypeInfo | LayerTypeInfo |
Functions | |
| BLI_STATIC_ASSERT (ARRAY_SIZE(((CustomData *) NULL) ->typemap)==CD_NUMTYPES, "size mismatch") | |
| 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) |
| 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) |
| static void | layerInterp_normal (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
| static bool | layerValidate_normal (void *data, const uint totitems, const bool do_fixes) |
| static void | layerCopyValue_normal (const void *source, void *dest, const int mixmode, const float mixfactor) |
| 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 (void) |
| 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) |
| static void | layerCopy_propInt (const void *source, void *dest, int count) |
| static void | layerCopy_propString (const void *source, void *dest, int count) |
| 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) |
| 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) |
| static void | layerInterp_paint_mask (const void **sources, const float *weights, const float *UNUSED(sub_weights), int count, void *dest) |
| 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)) |
| 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) |
| static int | layerMaxNum_mloopcol (void) |
| 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) |
| 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) |
| static void | layerSwap_flnor (void *data, const int *corner_indices) |
| static void | layerDefault_fmap (void *data, int count) |
| 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) |
| static int | layerMaxNum_propcol (void) |
| 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) |
| 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) |
| static const LayerTypeInfo * | layerType_getInfo (int type) |
| static const char * | layerType_getName (int type) |
| void | customData_mask_layers__print (const CustomData_MeshMasks *mask) |
| static void | customData_update_offsets (CustomData *data) |
| static CustomDataLayer * | customData_add_layer__internal (CustomData *data, int type, eCDAllocType alloctype, void *layerdata, int totelem, const char *name) |
| void | CustomData_update_typemap (CustomData *data) |
| static bool | customdata_typemap_is_valid (const CustomData *data) |
| bool | CustomData_merge (const struct CustomData *source, struct CustomData *dest, CustomDataMask mask, eCDAllocType alloctype, int totelem) |
| void | CustomData_realloc (CustomData *data, int totelem) |
| void | CustomData_copy (const struct CustomData *source, struct CustomData *dest, CustomDataMask mask, eCDAllocType alloctype, int totelem) |
| static void | customData_free_layer__internal (CustomDataLayer *layer, int totelem) |
| static void | CustomData_external_free (CustomData *data) |
| void | CustomData_reset (CustomData *data) |
| void | CustomData_free (CustomData *data, int totelem) |
| void | CustomData_free_typemask (struct CustomData *data, int totelem, CustomDataMask mask) |
| static int | CustomData_get_layer_index__notypemap (const CustomData *data, int type) |
| int | CustomData_get_layer_index (const CustomData *data, int type) |
| int | CustomData_get_layer_index_n (const struct CustomData *data, int type, int n) |
| int | CustomData_get_named_layer_index (const CustomData *data, int type, const char *name) |
| int | CustomData_get_active_layer_index (const CustomData *data, int type) |
| int | CustomData_get_render_layer_index (const CustomData *data, int type) |
| int | CustomData_get_clone_layer_index (const CustomData *data, int type) |
| int | CustomData_get_stencil_layer_index (const CustomData *data, int type) |
| int | CustomData_get_named_layer (const struct CustomData *data, int type, const char *name) |
| int | CustomData_get_active_layer (const CustomData *data, int type) |
| int | CustomData_get_render_layer (const CustomData *data, int type) |
| int | CustomData_get_clone_layer (const CustomData *data, int type) |
| int | CustomData_get_stencil_layer (const CustomData *data, int type) |
| void | CustomData_set_layer_active (CustomData *data, int type, int n) |
| void | CustomData_set_layer_render (CustomData *data, int type, int n) |
| void | CustomData_set_layer_clone (CustomData *data, int type, int n) |
| void | CustomData_set_layer_stencil (CustomData *data, int type, int n) |
| void | CustomData_set_layer_active_index (CustomData *data, int type, int n) |
| void | CustomData_set_layer_render_index (CustomData *data, int type, int n) |
| void | CustomData_set_layer_clone_index (CustomData *data, int type, int n) |
| void | CustomData_set_layer_stencil_index (CustomData *data, int type, int n) |
| void | CustomData_set_layer_flag (struct CustomData *data, int type, int flag) |
| void | CustomData_clear_layer_flag (struct CustomData *data, int type, int flag) |
| static bool | customData_resize (CustomData *data, int amount) |
| void * | CustomData_add_layer (CustomData *data, int type, eCDAllocType alloctype, void *layerdata, int totelem) |
| void * | CustomData_add_layer_named (CustomData *data, int type, eCDAllocType alloctype, void *layerdata, int totelem, const char *name) |
| bool | CustomData_free_layer (CustomData *data, int type, int totelem, int index) |
| bool | CustomData_free_layer_active (CustomData *data, int type, int totelem) |
| void | CustomData_free_layers (CustomData *data, int type, int totelem) |
| bool | CustomData_has_layer (const CustomData *data, int type) |
| int | CustomData_number_of_layers (const CustomData *data, int type) |
| int | CustomData_number_of_layers_typemask (const CustomData *data, CustomDataMask mask) |
| static void * | customData_duplicate_referenced_layer_index (CustomData *data, const int layer_index, const int totelem) |
| void * | CustomData_duplicate_referenced_layer (CustomData *data, const int type, const int totelem) |
| void * | CustomData_duplicate_referenced_layer_n (CustomData *data, const int type, const int n, const int totelem) |
| void * | CustomData_duplicate_referenced_layer_named (CustomData *data, const int type, const char *name, const int totelem) |
| void | CustomData_duplicate_referenced_layers (CustomData *data, int totelem) |
| bool | CustomData_is_referenced_layer (struct CustomData *data, int type) |
| void | CustomData_free_temporary (CustomData *data, int totelem) |
| void | CustomData_set_only_copy (const struct CustomData *data, CustomDataMask mask) |
| void | CustomData_copy_elements (int type, void *src_data_ofs, void *dst_data_ofs, int count) |
| 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) |
| void | CustomData_copy_data_named (const CustomData *source, CustomData *dest, int source_index, int dest_index, int count) |
| void | CustomData_copy_data (const CustomData *source, CustomData *dest, int source_index, int dest_index, int count) |
| void | CustomData_copy_layer_type_data (const CustomData *source, CustomData *destination, int type, int source_index, int destination_index, int count) |
| void | CustomData_free_elem (CustomData *data, int index, int count) |
| void | CustomData_interp (const CustomData *source, CustomData *dest, const int *src_indices, const float *weights, const float *sub_weights, int count, int dest_index) |
| void | CustomData_swap_corners (struct CustomData *data, int index, const int *corner_indices) |
| void | CustomData_swap (struct CustomData *data, const int index_a, const int index_b) |
| void * | CustomData_get (const CustomData *data, int index, int type) |
| void * | CustomData_get_n (const CustomData *data, int type, int index, int n) |
| void * | CustomData_get_layer (const CustomData *data, int type) |
| void * | CustomData_get_layer_n (const CustomData *data, int type, int n) |
| void * | CustomData_get_layer_named (const struct CustomData *data, int type, const char *name) |
| int | CustomData_get_offset (const CustomData *data, int type) |
| int | CustomData_get_n_offset (const CustomData *data, int type, int n) |
| bool | CustomData_set_layer_name (const CustomData *data, int type, int n, const char *name) |
| const char * | CustomData_get_layer_name (const CustomData *data, int type, int n) |
| void * | CustomData_set_layer (const CustomData *data, int type, void *ptr) |
| void * | CustomData_set_layer_n (const struct CustomData *data, int type, int n, void *ptr) |
| void | CustomData_set (const CustomData *data, int index, int type, const void *source) |
| void | CustomData_to_bmeshpoly (CustomData *fdata, CustomData *ldata, int totloop) |
| void | CustomData_from_bmeshpoly (CustomData *fdata, CustomData *ldata, int total) |
| bool | CustomData_from_bmeshpoly_test (CustomData *fdata, CustomData *ldata, bool fallback) |
| void | CustomData_bmesh_update_active_layers (CustomData *fdata, CustomData *ldata) |
| void | CustomData_bmesh_do_versions_update_active_layers (CustomData *fdata, CustomData *ldata) |
| void | CustomData_bmesh_init_pool (CustomData *data, int totelem, const char htype) |
| bool | CustomData_bmesh_merge (const CustomData *source, CustomData *dest, CustomDataMask mask, eCDAllocType alloctype, BMesh *bm, const char htype) |
| void | CustomData_bmesh_free_block (CustomData *data, void **block) |
| void | CustomData_bmesh_free_block_data (CustomData *data, void *block) |
| static void | CustomData_bmesh_alloc_block (CustomData *data, void **block) |
| void | CustomData_bmesh_free_block_data_exclude_by_type (CustomData *data, void *block, const CustomDataMask mask_exclude) |
| static void | CustomData_bmesh_set_default_n (CustomData *data, void **block, int n) |
| void | CustomData_bmesh_set_default (CustomData *data, void **block) |
| void | CustomData_bmesh_copy_data_exclude_by_type (const CustomData *source, CustomData *dest, void *src_block, void **dest_block, const CustomDataMask mask_exclude) |
| void | CustomData_bmesh_copy_data (const CustomData *source, CustomData *dest, void *src_block, void **dest_block) |
| void * | CustomData_bmesh_get (const CustomData *data, void *block, int type) |
| void * | CustomData_bmesh_get_n (const CustomData *data, void *block, int type, int n) |
| void * | CustomData_bmesh_get_layer_n (const CustomData *data, void *block, int n) |
| bool | CustomData_layer_has_math (const struct CustomData *data, int layer_n) |
| bool | CustomData_layer_has_interp (const struct CustomData *data, int layer_n) |
| bool | CustomData_has_math (const struct CustomData *data) |
| bool | CustomData_bmesh_has_free (const struct CustomData *data) |
| bool | CustomData_has_interp (const struct CustomData *data) |
| bool | CustomData_has_referenced (const struct CustomData *data) |
| void | CustomData_data_copy_value (int type, const void *source, void *dest) |
| void | CustomData_data_mix_value (int type, const void *source, void *dest, const int mixmode, const float mixfactor) |
| bool | CustomData_data_equals (int type, const void *data1, const void *data2) |
| void | CustomData_data_initminmax (int type, void *min, void *max) |
| void | CustomData_data_dominmax (int type, const void *data, void *min, void *max) |
| void | CustomData_data_multiply (int type, void *data, float fac) |
| void | CustomData_data_add (int type, void *data1, const void *data2) |
| void | CustomData_bmesh_set (const CustomData *data, void *block, int type, const void *source) |
| void | CustomData_bmesh_set_n (CustomData *data, void *block, int type, int n, const void *source) |
| void | CustomData_bmesh_set_layer_n (CustomData *data, void *block, int n, const void *source) |
| void | CustomData_bmesh_interp_n (CustomData *data, const void **src_blocks_ofs, const float *weights, const float *sub_weights, int count, void *dst_block_ofs, int n) |
| void | CustomData_bmesh_interp (CustomData *data, const void **src_blocks, const float *weights, const float *sub_weights, int count, void *dst_block) |
| void | CustomData_to_bmesh_block (const CustomData *source, CustomData *dest, int src_index, void **dest_block, bool use_default_init) |
| void | CustomData_from_bmesh_block (const CustomData *source, CustomData *dest, void *src_block, int dest_index) |
| void | CustomData_file_write_info (int type, const char **r_struct_name, int *r_struct_num) |
| void | CustomData_blend_write_prepare (CustomData *data, CustomDataLayer **r_write_layers, CustomDataLayer *write_layers_buff, size_t write_layers_size) |
| int | CustomData_sizeof (int type) |
| const char * | CustomData_layertype_name (int type) |
| bool | CustomData_layertype_is_singleton (int type) |
| bool | CustomData_layertype_is_dynamic (int type) |
| int | CustomData_layertype_layers_max (const int type) |
| static bool | cd_layer_find_dupe (CustomData *data, const char *name, int type, int index) |
| static bool | customdata_unique_check (void *arg, const char *name) |
| void | CustomData_set_layer_unique_name (CustomData *data, int index) |
| void | CustomData_validate_layer_name (const CustomData *data, int type, const char *name, char *outname) |
| bool | CustomData_verify_versions (struct CustomData *data, int index) |
| bool | CustomData_layer_validate (CustomDataLayer *layer, const uint totitems, const bool do_fixes) |
| void | CustomData_layers__print (CustomData *data) |
| static void | customdata_external_filename (char filename[FILE_MAX], ID *id, CustomDataExternal *external) |
| void | CustomData_external_reload (CustomData *data, ID *UNUSED(id), CustomDataMask mask, int totelem) |
| void | CustomData_external_read (CustomData *data, ID *id, CustomDataMask mask, int totelem) |
| void | CustomData_external_write (CustomData *data, ID *id, CustomDataMask mask, int totelem, int free) |
| void | CustomData_external_add (CustomData *data, ID *UNUSED(id), int type, int UNUSED(totelem), const char *filename) |
| void | CustomData_external_remove (CustomData *data, ID *id, int type, int totelem) |
| bool | CustomData_external_test (CustomData *data, int type) |
| 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) |
| static void | write_mdisps (BlendWriter *writer, int count, MDisps *mdlist, int external) |
| static void | write_grid_paint_mask (BlendWriter *writer, int count, GridPaintMask *grid_paint_mask) |
| void | CustomData_blend_write (BlendWriter *writer, CustomData *data, CustomDataLayer *layers, int count, CustomDataMask 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) |
Variables | |
| static CLG_LogRef | LOG = {"bke.customdata"} |
| 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_EDITMESH |
| const CustomData_MeshMasks | CD_MASK_DERIVEDMESH |
| const CustomData_MeshMasks | CD_MASK_BMESH |
| const CustomData_MeshMasks | CD_MASK_FACECORNERS |
| const CustomData_MeshMasks | CD_MASK_EVERYTHING |
| #define COPY_BIT_FLAG | ( | _type, | |
| _dst, | |||
| _src, | |||
| _f | |||
| ) |
| #define CUSTOMDATA_GROW 5 |
Definition at line 68 of file customdata.c.
| #define DNA_DEPRECATED_ALLOW |
Definition at line 30 of file customdata.c.
| #define LAYER_CMP | ( | l_a, | |
| t_a, | |||
| l_b, | |||
| t_b | |||
| ) |
| #define SOURCE_BUF_SIZE 100 |
Definition at line 3019 of file customdata.c.
| typedef struct LayerTypeInfo LayerTypeInfo |
|
static |
Definition at line 5138 of file customdata.c.
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 5166 of file customdata.c.
References BLO_read_data_address, count, and GridPaintMask::data.
Referenced by CustomData_blend_read().
| BLI_STATIC_ASSERT | ( | ARRAY_SIZE(((CustomData *) NULL) ->typemap) | = =CD_NUMTYPES, |
| "size mismatch" | |||
| ) |
| void bpy_bm_generic_invalidate | ( | struct BPy_BMGeneric * | UNUSEDself | ) |
Definition at line 224 of file customdata.c.
Referenced by BM_mesh_free(), and layerFree_bmesh_elem_py_ptr().
|
static |
Definition at line 4328 of file customdata.c.
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 4791 of file customdata.c.
References data.
Referenced by customdata_data_transfer_interp_generic().
|
static |
Definition at line 4760 of file customdata.c.
References COPY_BIT_FLAG.
Referenced by customdata_data_transfer_interp_generic().
| void* CustomData_add_layer | ( | CustomData * | data, |
| int | type, | ||
| eCDAllocType | alloctype, | ||
| void * | layerdata, | ||
| int | totelem | ||
| ) |
Definition at line 2620 of file customdata.c.
References customData_add_layer__internal(), CustomData_update_typemap(), data, CustomDataLayer::data, LayerTypeInfo::defaultname, layerType_getInfo(), NULL, and type.
Referenced by add_orco_mesh(), BKE_mesh_calc_edges(), BKE_mesh_calc_edges_legacy(), BKE_mesh_calc_edges_tessface(), BKE_mesh_calc_normals_split_ex(), BKE_mesh_convert_mfaces_to_mpolys_ex(), BKE_mesh_ensure_facemap_customdata(), BKE_mesh_ensure_normals_for_display(), BKE_mesh_ensure_skin_customdata(), BKE_mesh_from_metaball(), BKE_mesh_from_nurbs_displist(), BKE_mesh_from_pointcloud(), BKE_mesh_nomain_to_mesh(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_polys_from_mesh(), BKE_mesh_remesh_reproject_paint_mask(), BKE_mesh_tessface_calc_ex(), 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(), CDDM_copy(), 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_add_edge_layer(), DM_add_loop_layer(), DM_add_poly_layer(), DM_add_tessface_layer(), DM_add_vert_layer(), DM_DupPolys(), dm_getEdgeArray(), dm_getLoopArray(), dm_getPolyArray(), dm_getTessFaceArray(), dm_getVertArray(), dynamicPaint_Modifier_apply(), ED_mesh_join_objects_exec(), ED_object_facemap_face_add(), ED_object_modifier_convert(), editbmesh_calc_modifier_final_normals(), editbmesh_calc_modifiers(), Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh(), hair_create_input_mesh(), hair_init_data(), mesh_add_edges(), mesh_add_loops(), mesh_add_polys(), mesh_add_verts(), mesh_calc_modifier_final_normals(), mesh_calc_modifiers(), mesh_customdata_custom_splitnormals_add_exec(), mesh_ensure_cdlayers_primary(), mesh_set_custom_normals(), MOD_deform_mesh_eval_get(), MOD_solidify_extrude_modifyMesh(), modifier_skin_armature_create(), 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(), psys_thread_context_init_distribute(), SCULPT_dynamic_topology_disable_ex(), skin_set_orig_indices(), and blender::bke::BuiltinCustomDataLayerProvider::try_create().
|
static |
Definition at line 2513 of file customdata.c.
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, NULL, LayerTypeInfo::set_default, LayerTypeInfo::size, and type.
Referenced by CustomData_add_layer(), CustomData_add_layer_named(), and CustomData_merge().
| void* CustomData_add_layer_named | ( | CustomData * | data, |
| int | type, | ||
| eCDAllocType | alloctype, | ||
| void * | layerdata, | ||
| int | totelem, | ||
| const char * | name | ||
| ) |
Definition at line 2637 of file customdata.c.
References customData_add_layer__internal(), CustomData_update_typemap(), data, CustomDataLayer::data, NULL, and type.
Referenced by blender::io::alembic::add_customdata_cb(), add_shapekey_layers(), BKE_editmesh_loop_tangent_calc(), BKE_id_attribute_new(), BKE_mesh_add_loop_tangent_named_layer_for_uv(), BKE_mesh_calc_loop_tangent_ex(), BKE_mesh_from_nurbs_displist(), 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(), CustomData_from_bmeshpoly(), 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_texture_add(), Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh(), hair_init_data(), multires_unsubdivide_add_original_index_datalayers(), pointcloud_init_data(), blender::bke::CustomDataAttributeProvider::try_create(), and uvprojectModifier_do().
| void CustomData_blend_read | ( | BlendDataReader * | reader, |
| CustomData * | data, | ||
| int | count | ||
| ) |
Definition at line 5180 of file customdata.c.
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, CD_PROP_BOOL, CLOG_WARN, count, CustomData_reset(), CustomData_update_typemap(), CustomData_verify_versions(), data, CustomDataLayer::data, CustomDataLayer::flag, layerType_getInfo(), layerType_getName(), LOG, MEM_calloc_arrayN, NULL, LayerTypeInfo::set_default, LayerTypeInfo::size, CustomDataLayer::type, and UNLIKELY.
Referenced by hair_blend_read_data(), mesh_blend_read_data(), and pointcloud_blend_read_data().
| void CustomData_blend_write | ( | BlendWriter * | writer, |
| CustomData * | data, | ||
| CustomDataLayer * | layers, | ||
| int | count, | ||
| CustomDataMask | cddata_mask, | ||
| ID * | id | ||
| ) |
| layers | The layers argument assigned by CustomData_blend_write_prepare. |
Definition at line 5073 of file customdata.c.
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_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(), data, CustomDataLayer::data, CustomDataLayer::flag, CustomDataLayer::type, write_grid_paint_mask(), and write_mdisps().
Referenced by hair_blend_write(), mesh_blend_write(), and pointcloud_blend_write().
| void CustomData_blend_write_prepare | ( | CustomData * | data, |
| CustomDataLayer ** | r_write_layers, | ||
| CustomDataLayer * | write_layers_buff, | ||
| size_t | write_layers_size | ||
| ) |
Prepare given custom data for file writing.
| data | the customdata to tweak for .blend file writing (modified in place). |
| r_write_layers | contains a reduced set of layers to be written to file, use it with writestruct_at_address() (caller must free it if != write_layers_buff). |
| write_layers_buff | an optional buffer for r_write_layers (to avoid allocating it). |
| write_layers_size | the size of pre-allocated write_layer_buff. |
Definition at line 4237 of file customdata.c.
References BLI_assert, CD_FLAG_NOCOPY, CD_TEMP_CHUNK_SIZE, data, CustomDataLayer::flag, MEM_malloc_arrayN, MEM_reallocN, and UNLIKELY.
Referenced by hair_blend_write(), mesh_blend_write(), and pointcloud_blend_write().
|
static |
Definition at line 3652 of file customdata.c.
References BLI_mempool_alloc(), CustomData_bmesh_free_block(), data, and NULL.
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 3777 of file customdata.c.
References CustomData_bmesh_copy_data_exclude_by_type().
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 CustomDataMask | mask_exclude | ||
| ) |
Definition at line 3714 of file customdata.c.
References CD_TYPE_AS_MASK, LayerTypeInfo::copy, CustomData_bmesh_alloc_block(), CustomData_bmesh_set_default_n(), CustomData::layers, layerType_getInfo(), CustomDataLayer::name, NULL, CustomDataLayer::offset, POINTER_OFFSET, LayerTypeInfo::size, STREQ, CustomData::totlayer, CustomData::totsize, and CustomDataLayer::type.
Referenced by CustomData_bmesh_copy_data().
| void CustomData_bmesh_do_versions_update_active_layers | ( | CustomData * | fdata, |
| CustomData * | ldata | ||
| ) |
Definition at line 3449 of file customdata.c.
References CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTFACE, 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_do_versions_convert_mfaces_to_mpolys().
| void CustomData_bmesh_free_block | ( | CustomData * | data, |
| void ** | block | ||
| ) |
Definition at line 3606 of file customdata.c.
References BLI_mempool_free(), CD_FLAG_NOFREE, data, LayerTypeInfo::free, layerType_getInfo(), NULL, 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 | ( | CustomData * | data, |
| void * | block | ||
| ) |
Same as CustomData_bmesh_free_block but zero the memory rather than freeing.
Definition at line 3633 of file customdata.c.
References CD_FLAG_NOFREE, data, LayerTypeInfo::free, layerType_getInfo(), NULL, 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 | ( | CustomData * | data, |
| void * | block, | ||
| const CustomDataMask | mask_exclude | ||
| ) |
A selective version of CustomData_bmesh_free_block_data.
Definition at line 3669 of file customdata.c.
References CD_FLAG_NOFREE, CD_TYPE_AS_MASK, data, LayerTypeInfo::free, layerType_getInfo(), NULL, 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 3788 of file customdata.c.
References CustomData_get_active_layer_index(), data, NULL, 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 3811 of file customdata.c.
References data, NULL, 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 3799 of file customdata.c.
References CustomData_get_layer_index(), data, NULL, POINTER_OFFSET, and type.
Referenced by CustomData_bmesh_set_n().
| bool CustomData_bmesh_has_free | ( | const struct CustomData * | data | ) |
Definition at line 3856 of file customdata.c.
References CD_FLAG_NOFREE, data, LayerTypeInfo::free, and layerType_getInfo().
Referenced by BM_mesh_data_free().
| void CustomData_bmesh_init_pool | ( | CustomData * | data, |
| int | totelem, | ||
| const char | htype | ||
| ) |
Definition at line 3482 of file customdata.c.
References BLI_assert, BLI_mempool_create(), BLI_MEMPOOL_NOP, BM_EDGE, BM_FACE, BM_LOOP, bm_mesh_chunksize_default, BM_VERT, data, NULL, 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(), 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 4048 of file customdata.c.
References copy_vn_fl(), count, CustomData_bmesh_interp_n(), data, ELEM, LayerTypeInfo::interp, layerType_getInfo(), MEM_freeN, MEM_malloc_arrayN, MEM_mallocN, NULL, 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 | ( | CustomData * | data, |
| const void ** | src_blocks_ofs, | ||
| const float * | weights, | ||
| const float * | sub_weights, | ||
| int | count, | ||
| void * | dst_block_ofs, | ||
| int | n | ||
| ) |
Definition at line 4031 of file customdata.c.
References BLI_assert, count, data, LayerTypeInfo::interp, layerType_getInfo(), NULL, 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, | ||
| CustomDataMask | mask, | ||
| eCDAllocType | alloctype, | ||
| BMesh * | bm, | ||
| const char | htype | ||
| ) |
Definition at line 3514 of file customdata.c.
References BLI_assert, 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, BMLoop::head, l, CustomData::layers, mask(), MEM_dupallocN, MEM_freeN, NULL, 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 3976 of file customdata.c.
References LayerTypeInfo::copy, CustomData_bmesh_get(), data, layerType_getInfo(), LayerTypeInfo::size, and type.
| void CustomData_bmesh_set_default | ( | CustomData * | data, |
| void ** | block | ||
| ) |
Definition at line 3703 of file customdata.c.
References CustomData_bmesh_alloc_block(), CustomData_bmesh_set_default_n(), data, and NULL.
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 3690 of file customdata.c.
References data, layerType_getInfo(), 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 | ( | CustomData * | data, |
| void * | block, | ||
| int | n, | ||
| const void * | source | ||
| ) |
Definition at line 4010 of file customdata.c.
References LayerTypeInfo::copy, CustomData_bmesh_get_layer_n(), data, layerType_getInfo(), and LayerTypeInfo::size.
| void CustomData_bmesh_set_n | ( | CustomData * | data, |
| void * | block, | ||
| int | type, | ||
| int | n, | ||
| const void * | source | ||
| ) |
Definition at line 3993 of file customdata.c.
References LayerTypeInfo::copy, CustomData_bmesh_get_n(), data, 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 3411 of file customdata.c.
References CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTFACE, 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 CustomData_from_bmeshpoly(), and mesh_update_linked_customdata().
| void CustomData_clear_layer_flag | ( | struct CustomData * | data, |
| int | type, | ||
| int | flag | ||
| ) |
Definition at line 2484 of file customdata.c.
Referenced by modifyMesh(), and triangulate_mesh().
| void CustomData_copy | ( | const struct CustomData * | source, |
| struct CustomData * | dest, | ||
| CustomDataMask | mask, | ||
| eCDAllocType | alloctype, | ||
| int | totelem | ||
| ) |
Definition at line 2193 of file customdata.c.
References CustomData_merge(), CustomData_reset(), CustomData::external, mask(), and MEM_dupallocN.
Referenced by BKE_hair_new_for_eval(), BKE_mesh_new_nomain_from_template_ex(), BKE_mesh_nomain_to_mesh(), BKE_pointcloud_new_for_eval(), BM_mesh_bm_from_me(), BM_mesh_bm_to_me(), BM_mesh_copy_init_customdata(), BM_mesh_copy_init_customdata_from_mesh(), DM_DupPolys(), DM_from_template_ex(), hair_copy_data(), loop_interpolation_init(), mesh_add_edges(), mesh_add_loops(), mesh_add_polys(), mesh_add_verts(), mesh_copy_data(), pointcloud_copy_data(), SCULPT_dynamic_topology_disable_ex(), sculpt_undo_geometry_restore_data(), sculpt_undo_geometry_store_data(), and vertex_interpolation_init().
| void CustomData_copy_data | ( | const CustomData * | source, |
| CustomData * | dest, | ||
| int | source_index, | ||
| int | dest_index, | ||
| int | count | ||
| ) |
Definition at line 2948 of file customdata.c.
References count, CustomData_copy_data_layer(), 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 2892 of file customdata.c.
References CLOG_WARN, LayerTypeInfo::copy, count, CustomDataLayer::data, CustomData::layers, layerType_getInfo(), layerType_getName(), LOG, NULL, 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 2932 of file customdata.c.
References count, CustomData_copy_data_layer(), CustomData_get_named_layer_index(), CustomData::layers, CustomDataLayer::name, CustomData::totlayer, and CustomDataLayer::type.
| void CustomData_copy_elements | ( | int | type, |
| void * | src_data_ofs, | ||
| void * | dst_data_ofs, | ||
| int | count | ||
| ) |
Definition at line 2880 of file customdata.c.
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 2980 of file customdata.c.
References count, CustomData_copy_data_layer(), CustomData_get_layer_index(), and type.
| void CustomData_data_add | ( | int | type, |
| void * | data1, | ||
| const void * | data2 | ||
| ) |
Definition at line 3967 of file customdata.c.
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 customdata_weld().
| void CustomData_data_copy_value | ( | int | type, |
| const void * | source, | ||
| void * | dest | ||
| ) |
Definition at line 3893 of file customdata.c.
References CDT_MIX_NOMIX, LayerTypeInfo::copyvalue, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by bm_loop_customdata_merge(), bmo_average_vert_facedata_exec(), and bmo_collapsecon_do_layer().
| void CustomData_data_dominmax | ( | int | type, |
| const void * | data, | ||
| void * | min, | ||
| void * | max | ||
| ) |
Definition at line 3949 of file customdata.c.
References data, LayerTypeInfo::dominmax, layerType_getInfo(), max, min, and type.
Referenced by bmo_average_vert_facedata_exec(), and bmo_collapsecon_do_layer().
| bool CustomData_data_equals | ( | int | type, |
| const void * | data1, | ||
| const void * | data2 | ||
| ) |
Definition at line 3929 of file customdata.c.
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().
| void CustomData_data_initminmax | ( | int | type, |
| void * | min, | ||
| void * | max | ||
| ) |
Definition at line 3940 of file customdata.c.
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, | ||
| const int | mixmode, | ||
| const float | mixfactor | ||
| ) |
Definition at line 3911 of file customdata.c.
References LayerTypeInfo::copyvalue, layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by bm_loop_customdata_merge(), customdata_data_transfer_interp_generic(), and customdata_data_transfer_interp_normal_normals().
| void CustomData_data_multiply | ( | int | type, |
| void * | data, | ||
| float | fac | ||
| ) |
Definition at line 3958 of file customdata.c.
References data, layerType_getInfo(), LayerTypeInfo::multiply, and type.
Referenced by bmo_average_vert_facedata_exec(), bmo_collapsecon_do_layer(), bmo_pointmerge_facedata_exec(), and customdata_weld().
| void CustomData_data_transfer | ( | const MeshPairRemap * | me_remap, |
| const CustomDataTransferLayerMap * | laymap | ||
| ) |
Definition at line 4960 of file customdata.c.
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, NULL, POINTER_OFFSET, LayerTypeInfo::size, MeshPairRemapItem::sources_num, UNLIKELY, and MeshPairRemapItem::weights_src.
|
static |
Definition at line 4808 of file customdata.c.
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, NULL, 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, | ||
| const int | count, | ||
| const float | mix_factor | ||
| ) |
Definition at line 4924 of file customdata.c.
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(), CustomDataTransferLayerMap::mix_mode, and NULL.
Referenced by data_transfer_layersmapping_generate().
| void* CustomData_duplicate_referenced_layer | ( | CustomData * | data, |
| const int | type, | ||
| const int | totelem | ||
| ) |
Definition at line 2788 of file customdata.c.
References customData_duplicate_referenced_layer_index(), CustomData_get_active_layer_index(), data, and type.
Referenced by BKE_mesh_transform(), BKE_mesh_translate(), BKE_mesh_vert_coords_apply(), BKE_mesh_vert_coords_apply_with_mat4(), BKE_mesh_vert_normals_apply(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_vgroups(), mesh_calc_hq_normal(), MOD_solidify_extrude_modifyMesh(), modifyMesh(), normalEditModifier_do(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), and blender::bke::VertexGroupsAttributeProvider::try_get_for_write().
|
static |
Definition at line 2755 of file customdata.c.
References CD_FLAG_NOFREE, LayerTypeInfo::copy, data, CustomDataLayer::data, CustomDataLayer::flag, layerType_getInfo(), MEM_dupallocN, MEM_malloc_arrayN, NULL, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by CustomData_duplicate_referenced_layer(), 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 2796 of file customdata.c.
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 2807 of file customdata.c.
References customData_duplicate_referenced_layer_index(), CustomData_get_named_layer_index(), data, and type.
Referenced by hair_evaluate_modifiers(), modifyMesh(), 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 | ||
| ) |
Definition at line 2818 of file customdata.c.
References customData_duplicate_referenced_layer_index(), data, and CustomDataLayer::data.
Referenced by BKE_mesh_split_faces().
| void CustomData_external_add | ( | CustomData * | data, |
| ID * | UNUSEDid, | ||
| int | type, | ||
| int | UNUSEDtotelem, | ||
| const char * | filename | ||
| ) |
Definition at line 4699 of file customdata.c.
References BLI_strncpy(), CD_FLAG_EXTERNAL, CD_FLAG_IN_MEMORY, CustomData_get_active_layer_index(), data, CustomDataExternal::filename, CustomDataLayer::flag, MEM_callocN, and type.
|
static |
Definition at line 4497 of file customdata.c.
References BLI_path_abs(), BLI_strncpy(), FILE_MAX, CustomDataExternal::filename, and ID_BLEND_PATH_FROM_GLOBAL.
Referenced by CustomData_external_read(), and CustomData_external_write().
|
static |
Definition at line 2225 of file customdata.c.
References data, MEM_freeN, and NULL.
Referenced by CustomData_free(), and CustomData_free_typemask().
| void CustomData_external_read | ( | CustomData * | data, |
| ID * | id, | ||
| CustomDataMask | mask, | ||
| int | totelem | ||
| ) |
Definition at line 4523 of file customdata.c.
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 BKE_mesh_convert_mfaces_to_mpolys_ex(), CustomData_external_remove(), CustomData_external_write(), multires_ensure_external_read(), and multires_topology_changed().
| void CustomData_external_reload | ( | CustomData * | data, |
| ID * | UNUSEDid, | ||
| CustomDataMask | mask, | ||
| int | totelem | ||
| ) |
Definition at line 4505 of file customdata.c.
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 4724 of file customdata.c.
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 4748 of file customdata.c.
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, | ||
| CustomDataMask | mask, | ||
| int | totelem, | ||
| int | free | ||
| ) |
Definition at line 4596 of file customdata.c.
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 | ||
| ) |
Definition at line 4210 of file customdata.c.
References layerType_getInfo(), LayerTypeInfo::structname, LayerTypeInfo::structnum, and type.
Referenced by BKE_mesh_runtime_debug_print_cdlayers(), CustomData_blend_write(), CustomData_layers__print(), dm_debug_info_layers(), and mesh_runtime_debug_info_layers().
| 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 2239 of file customdata.c.
References CustomData_external_free(), customData_free_layer__internal(), CustomData_reset(), data, and MEM_freeN.
Referenced by BKE_keyblock_mesh_calc_normals(), BKE_mesh_calc_edges(), BKE_mesh_calc_edges_tessface(), BKE_mesh_convert_mfaces_to_mpolys_ex(), BKE_mesh_nomain_to_mesh(), BKE_mesh_tessface_calc_ex(), BKE_pointcloud_new_for_eval(), BM_mesh_bm_to_me(), BM_mesh_data_free(), DM_DupPolys(), DM_release(), ED_mesh_join_objects_exec(), extract_tan_ex(), hair_free_data(), loop_interpolation_end(), mesh_add_edges(), mesh_add_loops(), mesh_add_polys(), mesh_add_verts(), mesh_clear_geometry(), mesh_tessface_clear_intern(), pointcloud_free_data(), SCULPT_dynamic_topology_disable_ex(), sculpt_undo_geometry_free_data(), sculpt_undo_geometry_restore_data(), and vertex_interpolation_end().
| void CustomData_free_elem | ( | CustomData * | data, |
| int | index, | ||
| int | count | ||
| ) |
Definition at line 3004 of file customdata.c.
References CD_FLAG_NOFREE, count, data, LayerTypeInfo::free, layerType_getInfo(), 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 | ( | CustomData * | data, |
| int | type, | ||
| int | totelem, | ||
| int | index | ||
| ) |
Definition at line 2655 of file customdata.c.
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_id_attribute_remove(), BKE_mesh_from_pointcloud(), BKE_object_facemap_clear(), BM_data_layer_free_n(), copy_ccg_data(), CustomData_free_layer_active(), 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::BuiltinCustomDataLayerProvider::try_delete(), blender::bke::CustomDataAttributeProvider::try_delete(), and blender::bke::NamedLegacyCustomDataProvider::try_delete().
|
static |
Definition at line 2208 of file customdata.c.
References 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 | ( | CustomData * | data, |
| int | type, | ||
| int | totelem | ||
| ) |
Definition at line 2707 of file customdata.c.
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(), getCCGDerivedMesh(), modifier_skin_customdata_delete(), multires_customdata_delete(), and object_defgroup_remove_common().
| void CustomData_free_layers | ( | CustomData * | data, |
| int | type, | ||
| int | totelem | ||
| ) |
Definition at line 2716 of file customdata.c.
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(), editbmesh_calc_modifier_final_normals(), geometry_extract_apply(), mesh_calc_modifier_final_normals(), mesh_customdata_clear_exec__internal(), modifyMesh(), multires_create_grids_in_unsubdivided_base_mesh(), normalEditModifier_do(), and paint_mask_slice_exec().
| void CustomData_free_temporary | ( | CustomData * | data, |
| int | totelem | ||
| ) |
Definition at line 2839 of file customdata.c.
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, | ||
| CustomDataMask | mask | ||
| ) |
Definition at line 2253 of file customdata.c.
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 4165 of file customdata.c.
References LayerTypeInfo::copy, CustomDataLayer::data, CustomData::layers, layerType_getInfo(), CustomDataLayer::offset, POINTER_OFFSET, LayerTypeInfo::size, CustomData::totlayer, and CustomDataLayer::type.
| void CustomData_from_bmeshpoly | ( | CustomData * | fdata, |
| CustomData * | ldata, | ||
| int | total | ||
| ) |
Definition at line 3338 of file customdata.c.
References BLI_assert, CD_CALLOC, CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTFACE, CD_NORMAL, CD_ORIGSPACE, CD_ORIGSPACE_MLOOP, CD_PREVIEW_MCOL, CD_PREVIEW_MLOOPCOL, CD_TANGENT, CD_TESSLOOPNORMAL, CustomData_add_layer_named(), CustomData_bmesh_update_active_layers(), CustomData_from_bmeshpoly_test(), CustomData::layers, CustomDataLayer::name, NULL, CustomData::totlayer, and CustomDataLayer::type.
Referenced by BKE_mesh_tessface_calc_ex(), and mesh_ensure_tessellation_customdata().
| bool CustomData_from_bmeshpoly_test | ( | CustomData * | fdata, |
| CustomData * | ldata, | ||
| bool | fallback | ||
| ) |
Debug check, used to assert when we expect layers to be in/out of sync.
| fallback | Use when there are no layers to handle, since callers may expect success or failure. |
Definition at line 3377 of file customdata.c.
References CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTFACE, CD_NORMAL, CD_ORIGSPACE, CD_ORIGSPACE_MLOOP, CD_PREVIEW_MCOL, CD_PREVIEW_MLOOPCOL, CD_TANGENT, CD_TESSLOOPNORMAL, and LAYER_CMP.
Referenced by CustomData_from_bmeshpoly().
| void* CustomData_get | ( | const CustomData * | data, |
| int | index, | ||
| int | type | ||
| ) |
Definition at line 3165 of file customdata.c.
References BLI_assert, CustomData_get_active_layer_index(), data, layerType_getInfo(), NULL, POINTER_OFFSET, LayerTypeInfo::size, and type.
Referenced by CustomData_set().
| int CustomData_get_active_layer | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2373 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
| int CustomData_get_active_layer_index | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2334 of file customdata.c.
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_layer(), CustomData_get_offset(), CustomData_is_referenced_layer(), CustomData_set_layer(), and CustomData_validate_layer_name().
| int CustomData_get_clone_layer | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2387 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
| int CustomData_get_clone_layer_index | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2348 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
| void* CustomData_get_layer | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 3195 of file customdata.c.
References CustomData_get_active_layer_index(), data, NULL, and type.
| int CustomData_get_layer_index | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2302 of file customdata.c.
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 2288 of file customdata.c.
Referenced by CustomData_free_layer().
| int CustomData_get_layer_index_n | ( | const struct CustomData * | data, |
| int | type, | ||
| int | n | ||
| ) |
Definition at line 2308 of file customdata.c.
References BLI_assert, CustomData_get_layer_index(), data, and type.
Referenced by add_shapekey_layers(), BKE_editmesh_loop_tangent_calc(), BKE_mesh_calc_loop_tangent_ex(), BM_data_layer_free_n(), BM_mesh_bm_from_me(), bpy_bmlayeritem_get(), GeometryExporter::create_mesh_primitive_list(), GeometryExporter::createTexcoordsSource(), CustomData_duplicate_referenced_layer_n(), CustomData_get_layer_n(), CustomData_get_layer_name(), CustomData_get_n_offset(), CustomData_set_layer_n(), CustomData_set_layer_name(), ED_mesh_color_remove_index(), ED_mesh_sculpt_color_remove_index(), ED_mesh_uv_texture_remove_index(), and shapekey_layers_to_keyblocks().
| void* CustomData_get_layer_n | ( | const CustomData * | data, |
| int | type, | ||
| int | n | ||
| ) |
Definition at line 3206 of file customdata.c.
References CustomData_get_layer_index_n(), data, NULL, and type.
| const char* CustomData_get_layer_name | ( | const CustomData * | data, |
| int | type, | ||
| int | n | ||
| ) |
Definition at line 3263 of file customdata.c.
References CustomData_get_layer_index_n(), data, NULL, and type.
| void* CustomData_get_layer_named | ( | const struct CustomData * | data, |
| int | type, | ||
| const char * | name | ||
| ) |
Definition at line 3217 of file customdata.c.
References CustomData_get_named_layer_index(), data, NULL, and type.
Referenced by blender::io::alembic::add_customdata_cb(), BKE_hair_update_customdata_pointers(), BKE_mesh_calc_loop_tangent_ex(), BKE_mesh_calc_loop_tangent_single(), BKE_mesh_tangent_loops_to_tessdata(), BKE_pointcloud_update_customdata_pointers(), dynamicPaint_createUVSurface(), dynamicPaint_Modifier_apply(), dynamicPaint_setInitialColor(), explodeMesh(), extract_tan_ex(), get_particle_uv(), imapaint_pick_uv(), MOD_get_texture_coords(), modifyMesh(), multires_unsubdivide_extract_grids(), multires_unsubdivide_prepare_original_bmesh_for_extract(), pointdensity_cache_vertex_color(), project_paint_clone_face_skip(), and project_paint_prepare_all_faces().
| void* CustomData_get_n | ( | const CustomData * | data, |
| int | type, | ||
| int | index, | ||
| int | n | ||
| ) |
Definition at line 3181 of file customdata.c.
References BLI_assert, data, layerType_getInfo(), NULL, POINTER_OFFSET, LayerTypeInfo::size, and type.
| int CustomData_get_n_offset | ( | const CustomData * | data, |
| int | type, | ||
| int | n | ||
| ) |
Definition at line 3238 of file customdata.c.
References CustomData_get_layer_index_n(), data, and type.
| int CustomData_get_named_layer | ( | const struct CustomData * | data, |
| int | type, | ||
| const char * | name | ||
| ) |
Definition at line 2365 of file customdata.c.
References BLI_assert, CustomData_get_named_layer_index(), customdata_typemap_is_valid(), data, and type.
Referenced by bake(), bpy_bmlayercollection_subscript_str(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_cdlayers_multisrc_to_dst(), ED_mesh_color_remove_named(), ED_mesh_sculpt_color_remove_named(), ED_mesh_uv_texture_remove_named(), mesh_cd_calc_used_gpu_layers(), and RE_bake_pixels_populate().
| int CustomData_get_named_layer_index | ( | const CustomData * | data, |
| int | type, | ||
| const char * | name | ||
| ) |
Definition at line 2321 of file customdata.c.
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_merge(), and CustomData_validate_layer_name().
| int CustomData_get_offset | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 3227 of file customdata.c.
References CustomData_get_active_layer_index(), data, and type.
| int CustomData_get_render_layer | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2380 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
| int CustomData_get_render_layer_index | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2341 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
| int CustomData_get_stencil_layer | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2394 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
Referenced by CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
| int CustomData_get_stencil_layer_index | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2355 of file customdata.c.
References BLI_assert, customdata_typemap_is_valid(), data, and type.
| bool CustomData_has_interp | ( | const struct CustomData * | data | ) |
Definition at line 3869 of file customdata.c.
References CustomData_layer_has_interp(), and data.
Referenced by bm_grid_fill_array(), and BM_mesh_decimate_collapse().
| bool CustomData_has_layer | ( | const CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2724 of file customdata.c.
References CustomData_get_layer_index(), data, and type.
Referenced by customData_add_layer__internal(), CustomData_bmesh_do_versions_update_active_layers(), and CustomData_bmesh_update_active_layers().
| bool CustomData_has_math | ( | const struct CustomData * | data | ) |
Checks if any of the customdata layers has math.
Definition at line 3843 of file customdata.c.
References CustomData_layer_has_math(), and data.
Referenced by BM_face_split_edgenet(), BM_mesh_decimate_collapse(), bmo_collapse_uvs_exec(), bmo_inset_region_exec(), mesh_customdatacorrect_init_container(), and mesh_customdatacorrect_init_container_merge_group().
| bool CustomData_has_referenced | ( | const struct CustomData * | data | ) |
Checks if any of the customdata layers is referenced.
Definition at line 3881 of file customdata.c.
References CD_FLAG_NOFREE, and data.
Referenced by BKE_mesh_nomain_to_mesh().
| void CustomData_interp | ( | const CustomData * | source, |
| CustomData * | dest, | ||
| const int * | src_indices, | ||
| const float * | weights, | ||
| const float * | sub_weights, | ||
| int | count, | ||
| int | dest_index | ||
| ) |
Interpolate given custom data source items into a single destination one.
| src_indices | Indices of every source items to interpolate into the destination one. |
| weights | The weight to apply to each source value individually. If NULL, they will be averaged. |
| sub_weights | The weights of sub-items, only used to affect each corners of a tessellated face data (should always be and array of four values). |
| count | The number of source items to interpolate. |
| dest_index | Index of the destination item, in which to put the result of the interpolation. |
Definition at line 3033 of file customdata.c.
References copy_vn_fl(), count, CustomDataLayer::data, ELEM, LayerTypeInfo::interp, CustomData::layers, layerType_getInfo(), MEM_freeN, MEM_malloc_arrayN, MEM_mallocN, NULL, POINTER_OFFSET, LayerTypeInfo::size, SOURCE_BUF_SIZE, CustomData::totlayer, and CustomDataLayer::type.
| bool CustomData_is_referenced_layer | ( | struct CustomData * | data, |
| int | type | ||
| ) |
Definition at line 2826 of file customdata.c.
References CD_FLAG_NOFREE, CustomData_get_active_layer_index(), data, CustomDataLayer::flag, and type.
Referenced by BKE_mesh_calc_normals_mapping_simple().
| bool CustomData_layer_has_interp | ( | const struct CustomData * | data, |
| int | layer_n | ||
| ) |
Definition at line 3832 of file customdata.c.
References data, LayerTypeInfo::interp, and layerType_getInfo().
Referenced by CustomData_has_interp(), and customdata_weld().
| bool CustomData_layer_has_math | ( | const struct CustomData * | data, |
| int | layer_n | ||
| ) |
Checks if the layer at physical offset layer_n (in data->layers) support math the below operations.
Definition at line 3820 of file customdata.c.
References LayerTypeInfo::add, data, LayerTypeInfo::dominmax, LayerTypeInfo::equal, LayerTypeInfo::initminmax, layerType_getInfo(), and LayerTypeInfo::multiply.
Referenced by bm_edge_collapse_loop_customdata(), bm_loop_customdata_merge(), bmo_average_vert_facedata_exec(), bmo_collapse_uvs_exec(), bmo_pointmerge_facedata_exec(), contig_ldata_across_edge(), CustomData_has_math(), customdata_weld(), and mesh_customdatacorrect_init_container_merge_group().
| bool CustomData_layer_validate | ( | CustomDataLayer * | layer, |
| const uint | totitems, | ||
| const bool | do_fixes | ||
| ) |
Validate and fix data of layer, if possible (needs relevant callback in layer's type to be defined).
Definition at line 4460 of file customdata.c.
References CustomDataLayer::data, layerType_getInfo(), NULL, CustomDataLayer::type, and LayerTypeInfo::validate.
Referenced by mesh_validate_customdata().
| void CustomData_layers__print | ( | CustomData * | data | ) |
Definition at line 4471 of file customdata.c.
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 4303 of file customdata.c.
References LayerTypeInfo::free, layerType_getInfo(), NULL, 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 4292 of file customdata.c.
References LayerTypeInfo::defaultname, layerType_getInfo(), NULL, 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 | ( | const int | type | ) |
Definition at line 4313 of file customdata.c.
References LayerTypeInfo::defaultname, LayerTypeInfo::layers_max, layerType_getInfo(), NULL, and type.
Referenced by CustomData_merge().
| const char* CustomData_layertype_name | ( | int | type | ) |
Definition at line 4284 of file customdata.c.
References layerType_getName(), and type.
Referenced by BKE_mesh_runtime_debug_print_cdlayers(), CustomData_layers__print(), dm_debug_info_layers(), and mesh_runtime_debug_info_layers().
| void customData_mask_layers__print | ( | const CustomData_MeshMasks * | mask | ) |
Definition at line 2023 of file customdata.c.
References CD_NUMTYPES, CD_TYPE_AS_MASK, layerType_getName(), and mask().
| bool CustomData_merge | ( | const struct CustomData * | source, |
| struct CustomData * | dest, | ||
| CustomDataMask | mask, | ||
| eCDAllocType | alloctype, | ||
| int | totelem | ||
| ) |
Definition at line 2098 of file customdata.c.
References CustomDataLayer::active, CustomDataLayer::active_clone, CustomDataLayer::active_mask, CustomDataLayer::active_rnd, CD_ASSIGN, CD_DUPLICATE, 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, CustomDataLayer::flag, CustomData::layers, mask(), CustomDataLayer::name, NULL, CustomData::totlayer, type, CustomDataLayer::type, and CustomDataLayer::uid.
Referenced by BKE_mesh_from_pointcloud(), BKE_pointcloud_from_mesh(), BM_mesh_bm_to_me_for_eval(), cdDM_from_mesh_ex(), CustomData_bmesh_merge(), CustomData_copy(), and join_mesh_single().
| 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.c.
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(), editbmesh_get_eval_cage_and_final(), 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 bitwise OR).
Definition at line 76 of file customdata.c.
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 2729 of file customdata.c.
| int CustomData_number_of_layers_typemask | ( | const CustomData * | data, |
| CustomDataMask | mask | ||
| ) |
Definition at line 2742 of file customdata.c.
References CD_TYPE_AS_MASK, data, and mask().
Referenced by CustomData_bmesh_merge().
| void CustomData_realloc | ( | CustomData * | data, |
| int | totelem | ||
| ) |
Definition at line 2180 of file customdata.c.
References CD_FLAG_NOFREE, data, CustomDataLayer::data, CustomDataLayer::flag, layerType_getInfo(), MEM_reallocN, LayerTypeInfo::size, and CustomDataLayer::type.
Referenced by BKE_mesh_split_faces(), BKE_pointcloud_from_mesh(), BKE_pointcloud_new_nomain(), hair_random(), and pointcloud_random().
| void CustomData_reset | ( | struct CustomData * | data | ) |
NULL's all members and resets the typemap.
Definition at line 2233 of file customdata.c.
References CD_NUMTYPES, copy_vn_i(), and data.
Referenced by BKE_keyblock_mesh_calc_normals(), BKE_mesh_calc_edges(), BKE_mesh_calc_edges_tessface(), BKE_mesh_nomain_to_mesh(), BM_mesh_clear(), BM_mesh_create(), CustomData_blend_read(), CustomData_copy(), CustomData_free(), CustomData_free_typemask(), ED_mesh_join_objects_exec(), extract_tan_ex(), hair_init_data(), mesh_init_data(), mesh_tessface_clear_intern(), and pointcloud_init_data().
|
static |
Definition at line 2495 of file customdata.c.
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 3297 of file customdata.c.
References LayerTypeInfo::copy, CustomData_get(), data, layerType_getInfo(), LayerTypeInfo::size, and type.
| void* CustomData_set_layer | ( | const CustomData * | data, |
| int | type, | ||
| void * | ptr | ||
| ) |
Definition at line 3270 of file customdata.c.
References CustomData_get_active_layer_index(), data, NULL, ptr, and type.
| void CustomData_set_layer_active | ( | CustomData * | data, |
| int | type, | ||
| int | n | ||
| ) |
Definition at line 2401 of file customdata.c.
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_texture_add(), and Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh().
| void CustomData_set_layer_active_index | ( | CustomData * | data, |
| int | type, | ||
| int | n | ||
| ) |
Definition at line 2439 of file customdata.c.
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 2419 of file customdata.c.
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 2457 of file customdata.c.
| void CustomData_set_layer_flag | ( | struct CustomData * | data, |
| int | type, | ||
| int | flag | ||
| ) |
Definition at line 2475 of file customdata.c.
Referenced by BKE_mesh_calc_normals_split_ex(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_polys_from_mesh(), BM_custom_loop_normals_to_vector_layer(), data_transfer_dtdata_type_preprocess(), dm_getEdgeArray(), dm_getLoopArray(), dm_getPolyArray(), dm_getTessFaceArray(), dm_getVertArray(), modifyMesh(), normalEditModifier_do(), and triangulate_mesh().
| void* CustomData_set_layer_n | ( | const struct CustomData * | data, |
| int | type, | ||
| int | n, | ||
| void * | ptr | ||
| ) |
Definition at line 3284 of file customdata.c.
References CustomData_get_layer_index_n(), data, NULL, ptr, and type.
| bool CustomData_set_layer_name | ( | const CustomData * | data, |
| int | type, | ||
| int | n, | ||
| const char * | name | ||
| ) |
Definition at line 3249 of file customdata.c.
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 2410 of file customdata.c.
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 2448 of file customdata.c.
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 2428 of file customdata.c.
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 2466 of file customdata.c.
| void CustomData_set_layer_unique_name | ( | CustomData * | data, |
| int | index | ||
| ) |
Definition at line 4361 of file customdata.c.
References BLI_uniquename_cb(), customdata_unique_check(), data, DATA_, LayerTypeInfo::defaultname, layerType_getInfo(), CustomDataLayer::name, NULL, STRNCPY, type, and CustomDataLayer::type.
Referenced by BKE_id_attribute_rename(), and customData_add_layer__internal().
| void CustomData_set_only_copy | ( | const struct CustomData * | data, |
| CustomDataMask | mask | ||
| ) |
Definition at line 2871 of file customdata.c.
References CD_FLAG_NOCOPY, CD_TYPE_AS_MASK, data, and mask().
Referenced by DM_set_only_copy(), mesh_set_only_copy(), and multiresbake_create_hiresdm().
| int CustomData_sizeof | ( | int | type | ) |
Definition at line 4277 of file customdata.c.
References layerType_getInfo(), LayerTypeInfo::size, and type.
Referenced by BKE_mesh_runtime_debug_print_cdlayers(), 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_layers__print(), customdata_weld(), dm_debug_info_layers(), mesh_runtime_debug_info_layers(), um_arraystore_cd_compact(), um_arraystore_cd_expand(), and um_arraystore_cd_free().
| void CustomData_swap | ( | struct CustomData * | data, |
| const int | index_a, | ||
| const int | index_b | ||
| ) |
Swap two items of given custom data, in all available layers.
Definition at line 3138 of file customdata.c.
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 3122 of file customdata.c.
References data, layerType_getInfo(), POINTER_OFFSET, LayerTypeInfo::size, and LayerTypeInfo::swap.
Referenced by test_index_face().
| void CustomData_to_bmesh_block | ( | const CustomData * | source, |
| CustomData * | dest, | ||
| int | src_index, | ||
| void ** | dest_block, | ||
| bool | use_default_init | ||
| ) |
| use_default_init | initializes data which can't be copied, typically you'll want to use this if the BM_xxx create function is called with BM_CREATE_SKIP_CD flag |
Definition at line 4104 of file customdata.c.
References LayerTypeInfo::copy, CustomData_bmesh_alloc_block(), CustomData_bmesh_set_default_n(), CustomDataLayer::data, if(), CustomData::layers, layerType_getInfo(), NULL, CustomDataLayer::offset, POINTER_OFFSET, LayerTypeInfo::size, CustomData::totlayer, and CustomDataLayer::type.
| void CustomData_to_bmeshpoly | ( | CustomData * | fdata, |
| CustomData * | ldata, | ||
| int | totloop | ||
| ) |
Definition at line 3316 of file customdata.c.
References CD_CALLOC, CD_MCOL, CD_MDISPS, CD_MLOOPCOL, CD_MLOOPUV, CD_MTFACE, CD_NORMAL, CD_TESSLOOPNORMAL, CustomData_add_layer_named(), CustomData::layers, CustomDataLayer::name, NULL, CustomData::totlayer, and CustomDataLayer::type.
Referenced by BKE_mesh_convert_mfaces_to_mpolys_ex().
|
static |
Definition at line 2090 of file customdata.c.
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(), and CustomData_get_stencil_layer_index().
|
static |
Definition at line 4351 of file customdata.c.
References cd_layer_find_dupe(), data, and type.
Referenced by CustomData_set_layer_unique_name().
|
static |
Definition at line 2271 of file customdata.c.
References CustomData_update_typemap(), data, layerType_getInfo(), 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 2071 of file customdata.c.
References CD_NUMTYPES, data, and type.
Referenced by BKE_editmesh_loop_tangent_calc(), BKE_mesh_from_pointcloud(), BKE_pointcloud_from_mesh(), blo_do_versions_260(), blo_do_versions_280(), BM_mesh_bm_to_me(), CustomData_add_layer(), CustomData_add_layer_named(), CustomData_blend_read(), CustomData_merge(), customdata_typemap_is_valid(), and customData_update_offsets().
| void CustomData_validate_layer_name | ( | const CustomData * | data, |
| int | type, | ||
| const char * | name, | ||
| char * | outname | ||
| ) |
Definition at line 4389 of file customdata.c.
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 | ||
| ) |
Definition at line 4413 of file customdata.c.
References 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().
|
static |
Definition at line 1058 of file customdata.c.
References add_v2_v2(), data1, data2, and OrigSpaceLoop::uv.
|
static |
Definition at line 815 of file customdata.c.
References MLoopCol::a, MLoopCol::b, data1, data2, MLoopCol::g, and MLoopCol::r.
|
static |
Definition at line 967 of file customdata.c.
References add_v2_v2(), data1, data2, and MLoopUV::uv.
|
static |
Definition at line 1335 of file customdata.c.
References add_v4_v4(), MPropCol::color, data1, and data2.
|
static |
|
static |
|
static |
Definition at line 213 of file customdata.c.
References count, NULL, POINTER_OFFSET, ptr, and size().
|
static |
Definition at line 703 of file customdata.c.
References count, data, GridPaintMask::data, GridPaintMask::level, MEM_dupallocN, and NULL.
|
static |
Definition at line 177 of file customdata.c.
References count, MDeformVert::dw, MEM_malloc_arrayN, NULL, POINTER_OFFSET, size(), and MDeformVert::totweight.
|
static |
Definition at line 606 of file customdata.c.
References count, MDisps::disps, MDisps::hidden, MDisps::level, MEM_dupallocN, NULL, and MDisps::totdisp.
|
static |
Definition at line 1218 of file customdata.c.
References count.
|
static |
Definition at line 518 of file customdata.c.
References count.
|
static |
Definition at line 471 of file customdata.c.
References count.
|
static |
Definition at line 508 of file customdata.c.
References count.
|
static |
Definition at line 513 of file customdata.c.
References count.
|
static |
Definition at line 406 of file customdata.c.
References count.
|
static |
Definition at line 1018 of file customdata.c.
References copy_v2_v2(), and OrigSpaceLoop::uv.
|
static |
Definition at line 734 of file customdata.c.
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, ELEM, float(), MLoopCol::g, and MLoopCol::r.
|
static |
Definition at line 919 of file customdata.c.
References CDT_MIX_NOMIX, copy_v2_v2(), interp_v2_v2v2(), and MLoopUV::uv.
|
static |
Definition at line 369 of file customdata.c.
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(), ELEM, interp_v3_v3v3_slerp_safe(), mul_v3_v3v3(), normalize_v3(), and sub_v3_v3v3().
|
static |
Definition at line 1268 of file customdata.c.
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(), and ELEM.
|
static |
Definition at line 1260 of file customdata.c.
|
static |
Definition at line 1146 of file customdata.c.
|
static |
Definition at line 872 of file customdata.c.
|
static |
Definition at line 1208 of file customdata.c.
References copy_v3_fl(), count, data, and MVertSkin::flag.
|
static |
Definition at line 1156 of file customdata.c.
References copy_vn_i(), count, data, and ORIGINDEX_NONE.
|
static |
Definition at line 566 of file customdata.c.
|
static |
Definition at line 1357 of file customdata.c.
References MPropCol::color, copy_v4_v4(), count, and data.
|
static |
Definition at line 456 of file customdata.c.
|
static |
Definition at line 1050 of file customdata.c.
References data, max, min, minmax_v2v2_v2(), and OrigSpaceLoop::uv.
|
static |
Definition at line 826 of file customdata.c.
References MLoopCol::a, MLoopCol::b, data, MLoopCol::g, max, min, and MLoopCol::r.
|
static |
Definition at line 959 of file customdata.c.
References data, max, min, minmax_v2v2_v2(), and MLoopUV::uv.
|
static |
Definition at line 1342 of file customdata.c.
References MPropCol::color, data, max, min, and minmax_v4v4_v4().
|
static |
Definition at line 1029 of file customdata.c.
References data1, data2, len_squared_v2v2(), and OrigSpaceLoop::uv.
|
static |
Definition at line 792 of file customdata.c.
References Freestyle::a, MLoopCol::a, MLoopCol::b, data1, data2, MLoopCol::g, r, and MLoopCol::r.
|
static |
Definition at line 938 of file customdata.c.
References data1, data2, len_squared_v2v2(), and MLoopUV::uv.
|
static |
Definition at line 1316 of file customdata.c.
References Freestyle::c, MPropCol::color, data1, and data2.
|
static |
Definition at line 677 of file customdata.c.
|
static |
Definition at line 230 of file customdata.c.
References bpy_bm_generic_invalidate(), count, data, POINTER_OFFSET, ptr, and size().
|
static |
Definition at line 720 of file customdata.c.
References count, data, GridPaintMask::data, GridPaintMask::level, MEM_freeN, and NULL.
|
static |
Definition at line 199 of file customdata.c.
References count, data, MDeformVert::dw, MEM_freeN, NULL, POINTER_OFFSET, size(), and MDeformVert::totweight.
|
static |
Definition at line 627 of file customdata.c.
References count, data, MDisps::disps, MDisps::hidden, MDisps::level, MEM_freeN, NULL, and MDisps::totdisp.
|
static |
Definition at line 1043 of file customdata.c.
References INIT_MINMAX2, max, and min.
|
static |
Definition at line 857 of file customdata.c.
|
static |
Definition at line 952 of file customdata.c.
References INIT_MINMAX2, max, and min.
|
static |
Definition at line 1349 of file customdata.c.
References copy_v4_fl(), max, and min.
|
static |
Definition at line 1161 of file customdata.c.
References count.
|
static |
Definition at line 1086 of file customdata.c.
References Freestyle::a, MCol::a, MCol::b, col, count, MCol::g, r, MCol::r, round_fl_to_uchar_clamp(), and w().
|
static |
Definition at line 240 of file customdata.c.
References count, MDeformWeight::def_nr, MDeformVert::dw, MEM_freeN, MEM_malloc_arrayN, next, node, NULL, MDeformVert::totweight, and MDeformWeight::weight.
|
static |
Definition at line 1066 of file customdata.c.
References copy_v2_v2(), count, madd_v2_v2fl(), OrigSpaceLoop::uv, and zero_v2().
|
static |
Definition at line 881 of file customdata.c.
References Freestyle::a, MLoopCol::a, MLoopCol::b, col, count, MLoopCol::g, r, MLoopCol::r, and round_fl_to_uchar_clamp().
|
static |
Definition at line 975 of file customdata.c.
References copy_v2_v2(), count, MLoopUV::flag, madd_v2_v2fl(), MLoopUV::uv, and zero_v2().
|
static |
Definition at line 1223 of file customdata.c.
References copy_v3_v3(), count, MVertSkin::flag, madd_v3_v3fl(), MVERT_SKIN_ROOT, MVertSkin::radius, and zero_v3().
|
static |
Definition at line 326 of file customdata.c.
References count, madd_v3_v3fl(), and normalize_v3_v3().
|
static |
Definition at line 528 of file customdata.c.
References count, madd_v2_v2fl(), and OrigSpaceFace::uv.
|
static |
Definition at line 688 of file customdata.c.
|
static |
Definition at line 1367 of file customdata.c.
References col, MPropCol::color, copy_v4_v4(), count, and madd_v4_v4fl().
|
static |
Definition at line 476 of file customdata.c.
|
static |
Definition at line 1435 of file customdata.c.
References copy_v2_v2(), count, madd_v2_v2fl(), result, and vec2f::x.
|
static |
Definition at line 1388 of file customdata.c.
References copy_v3_v3(), count, madd_v3_v3fl(), result, and vec3f::x.
|
static |
Definition at line 1184 of file customdata.c.
References copy_v3_v3(), count, madd_v3_v3fl(), and zero_v3().
|
static |
Definition at line 415 of file customdata.c.
References count, madd_v2_v2fl(), and MTFace::uv.
|
static |
Definition at line 914 of file customdata.c.
References MAX_MCOL.
|
static |
Definition at line 1383 of file customdata.c.
References MAX_MCOL.
|
static |
Definition at line 466 of file customdata.c.
References MAX_MTFACE.
|
static |
Definition at line 1036 of file customdata.c.
References data, mul_v2_fl(), and OrigSpaceLoop::uv.
|
static |
Definition at line 805 of file customdata.c.
References MLoopCol::a, MLoopCol::b, data, float(), MLoopCol::g, and MLoopCol::r.
|
static |
Definition at line 945 of file customdata.c.
References data, mul_v2_fl(), and MLoopUV::uv.
|
static |
Definition at line 1329 of file customdata.c.
References MPropCol::color, data, and mul_v4_fl().
|
static |
Definition at line 1450 of file customdata.c.
|
static |
|
static |
Definition at line 645 of file customdata.c.
References cdf_read_data(), CLOG_ERROR, count, data, MDisps::disps, LOG, and MEM_calloc_arrayN.
|
static |
Definition at line 1247 of file customdata.c.
References copy_v3_v3_short(), and data.
|
static |
Definition at line 1134 of file customdata.c.
|
static |
Definition at line 576 of file customdata.c.
References data, MDisps::disps, float(), MEM_calloc_arrayN, MEM_freeN, multires_mdisp_corners(), and MDisps::totdisp.
|
static |
Definition at line 555 of file customdata.c.
References copy_v2_v2(), data, and OrigSpaceFace::uv.
|
static |
Definition at line 443 of file customdata.c.
References copy_v2_v2(), data, and MTFace::uv.
|
static |
Definition at line 2005 of file customdata.c.
References CD_NUMTYPES, LAYERTYPEINFO, NULL, and type.
Referenced by CustomData_add_layer(), customData_add_layer__internal(), CustomData_blend_read(), 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_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 2014 of file customdata.c.
References CD_NUMTYPES, LAYERTYPENAMES, NULL, and type.
Referenced by customData_add_layer__internal(), CustomData_blend_read(), CustomData_copy_data_layer(), CustomData_external_read(), CustomData_layertype_name(), and customData_mask_layers__print().
|
static |
Definition at line 1000 of file customdata.c.
References data, is_finite_v2(), MLoopUV::uv, and zero_v2().
|
static |
Definition at line 345 of file customdata.c.
References compare_ff(), copy_v3_v3(), data, float(), is_finite_v3(), len_squared_v3(), and normalize_v3().
|
static |
Definition at line 491 of file customdata.c.
References data, MFloatProperty::f, and CCL_NAMESPACE_BEGIN::isfinite().
|
static |
Definition at line 1465 of file customdata.c.
References data, and CCL_NAMESPACE_BEGIN::isfinite().
|
static |
Definition at line 1420 of file customdata.c.
References data, and CCL_NAMESPACE_BEGIN::isfinite().
|
static |
Definition at line 663 of file customdata.c.
References cdf_write_data(), CLOG_ERROR, count, data, and LOG.
|
static |
Definition at line 5056 of file customdata.c.
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 5037 of file customdata.c.
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 1919 of file customdata.c.
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 1926 of file customdata.c.
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 1964 of file customdata.c.
Referenced by BM_mesh_bm_from_me(), BM_mesh_copy_init_customdata(), BM_mesh_copy_init_customdata_from_mesh(), and bpy_bmesh_from_object().
| const CustomData_MeshMasks CD_MASK_DERIVEDMESH |
Definition at line 1952 of file customdata.c.
Referenced by BM_mesh_bm_to_me_for_eval(), DM_DupPolys(), DM_from_template(), and mesh_copy_data().
| const CustomData_MeshMasks CD_MASK_EDITMESH |
Definition at line 1943 of file customdata.c.
| const CustomData_MeshMasks CD_MASK_EVERYTHING |
Definition at line 1986 of file customdata.c.
Referenced by BKE_mesh_new_nomain_from_template(), geometry_extract_apply(), loop_interpolation_init(), subdiv_mesh_topology_info(), and vertex_interpolation_init().
| const CustomData_MeshMasks CD_MASK_FACECORNERS |
cover values copied by BKE_mesh_loops_to_tessdata
Definition at line 1977 of file customdata.c.
| const CustomData_MeshMasks CD_MASK_MESH |
Definition at line 1933 of file customdata.c.
Referenced by bc_get_mesh_copy(), BKE_mesh_from_nurbs_displist(), 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::alembic::AbcSubDReader::readObjectData(), blender::io::alembic::AbcPointsReader::readObjectData(), blender::io::alembic::AbcMeshReader::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 1480 of file customdata.c.
Referenced by layerType_getInfo().
|
static |
Definition at line 1863 of file customdata.c.
Referenced by layerType_getName().
|
static |
Definition at line 73 of file customdata.c.
Referenced by CustomData_blend_read(), CustomData_copy_data_layer(), CustomData_external_read(), CustomData_external_write(), CustomData_verify_versions(), layerRead_mdisps(), and layerWrite_mdisps().