Blender V2.61 - r43446
Classes | Defines | Typedefs

DNA_customdata_types.h File Reference

#include "DNA_defs.h"

Go to the source code of this file.

Classes

struct  CustomDataLayer
struct  CustomDataExternal
struct  CustomData

Defines

#define MAX_CUSTOMDATA_LAYER_NAME   64
#define CD_MVERT   0
#define CD_MSTICKY   1
#define CD_MDEFORMVERT   2
#define CD_MEDGE   3
#define CD_MFACE   4
#define CD_MTFACE   5
#define CD_MCOL   6
#define CD_ORIGINDEX   7
#define CD_NORMAL   8
#define CD_POLYINDEX   9
#define CD_PROP_FLT   10
#define CD_PROP_INT   11
#define CD_PROP_STR   12
#define CD_ORIGSPACE   13
#define CD_ORCO   14
#define CD_MTEXPOLY   15
#define CD_MLOOPUV   16
#define CD_MLOOPCOL   17
#define CD_TANGENT   18
#define CD_MDISPS   19
#define CD_WEIGHT_MCOL   20
#define CD_ID_MCOL   21
#define CD_TEXTURE_MCOL   22
#define CD_CLOTH_ORCO   23
#define CD_RECAST   24
#define CD_MPOLY   25
#define CD_MLOOP   26
#define CD_SHAPE_KEYINDEX   27
#define CD_SHAPEKEY   28
#define CD_BWEIGHT   29
#define CD_CREASE   30
#define CD_WEIGHT_MLOOPCOL   31
#define CD_NUMTYPES   32
#define CD_MASK_MVERT   (1 << CD_MVERT)
#define CD_MASK_MSTICKY   (1 << CD_MSTICKY)
#define CD_MASK_MDEFORMVERT   (1 << CD_MDEFORMVERT)
#define CD_MASK_MEDGE   (1 << CD_MEDGE)
#define CD_MASK_MFACE   (1 << CD_MFACE)
#define CD_MASK_MTFACE   (1 << CD_MTFACE)
#define CD_MASK_MCOL   (1 << CD_MCOL)
#define CD_MASK_ORIGINDEX   (1 << CD_ORIGINDEX)
#define CD_MASK_NORMAL   (1 << CD_NORMAL)
#define CD_MASK_POLYINDEX   (1 << CD_POLYINDEX)
#define CD_MASK_PROP_FLT   (1 << CD_PROP_FLT)
#define CD_MASK_PROP_INT   (1 << CD_PROP_INT)
#define CD_MASK_PROP_STR   (1 << CD_PROP_STR)
#define CD_MASK_ORIGSPACE   (1 << CD_ORIGSPACE)
#define CD_MASK_ORCO   (1 << CD_ORCO)
#define CD_MASK_MTEXPOLY   (1 << CD_MTEXPOLY)
#define CD_MASK_MLOOPUV   (1 << CD_MLOOPUV)
#define CD_MASK_MLOOPCOL   (1 << CD_MLOOPCOL)
#define CD_MASK_TANGENT   (1 << CD_TANGENT)
#define CD_MASK_MDISPS   (1 << CD_MDISPS)
#define CD_MASK_WEIGHT_MCOL   (1 << CD_WEIGHT_MCOL)
#define CD_MASK_CLOTH_ORCO   (1 << CD_CLOTH_ORCO)
#define CD_MASK_RECAST   (1 << CD_RECAST)
#define CD_MASK_MPOLY   (1 << CD_MPOLY)
#define CD_MASK_MLOOP   (1 << CD_MLOOP)
#define CD_MASK_SHAPE_KEYINDEX   (1 << CD_SHAPE_KEYINDEX)
#define CD_MASK_SHAPEKEY   (1 << CD_SHAPEKEY)
#define CD_MASK_BWEIGHT   (1 << CD_BWEIGHT)
#define CD_MASK_CREASE   (1 << CD_CREASE)
#define CD_MASK_WEIGHT_MLOOPCOL   (1 << CD_WEIGHT_MLOOPCOL)
#define CD_FLAG_NOCOPY   (1<<0)
#define CD_FLAG_NOFREE   (1<<1)
#define CD_FLAG_TEMPORARY   ((1<<2)|CD_FLAG_NOCOPY)
#define CD_FLAG_EXTERNAL   (1<<3)
#define CD_FLAG_IN_MEMORY   (1<<4)
#define MAX_MTFACE   8
#define MAX_MCOL   8

Typedefs

typedef struct CustomDataLayer CustomDataLayer
typedef struct CustomDataExternal CustomDataExternal
typedef struct CustomData CustomData

Detailed Description

Definition in file DNA_customdata_types.h.


Define Documentation

#define CD_BWEIGHT   29

Definition at line 109 of file DNA_customdata_types.h.

#define CD_CLOTH_ORCO   23
#define CD_CREASE   30

Definition at line 110 of file DNA_customdata_types.h.

#define CD_FLAG_EXTERNAL   (1<<3)
#define CD_FLAG_IN_MEMORY   (1<<4)
#define CD_FLAG_NOCOPY   (1<<0)

Definition at line 165 of file DNA_customdata_types.h.

Referenced by CustomData_merge(), and CustomData_set_only_copy().

#define CD_FLAG_NOFREE   (1<<1)
#define CD_FLAG_TEMPORARY   ((1<<2)|CD_FLAG_NOCOPY)
#define CD_ID_MCOL   21

Definition at line 97 of file DNA_customdata_types.h.

Referenced by cdDM_drawMappedFaces(), and gpu_buffer_color_type().

#define CD_MASK_BWEIGHT   (1 << CD_BWEIGHT)

Definition at line 154 of file DNA_customdata_types.h.

#define CD_MASK_CLOTH_ORCO   (1 << CD_CLOTH_ORCO)

Definition at line 144 of file DNA_customdata_types.h.

Referenced by mesh_calc_modifiers(), and requiredDataMask().

#define CD_MASK_CREASE   (1 << CD_CREASE)

Definition at line 155 of file DNA_customdata_types.h.

#define CD_MASK_MCOL   (1 << CD_MCOL)
#define CD_MASK_MDEFORMVERT   (1 << CD_MDEFORMVERT)

Definition at line 125 of file DNA_customdata_types.h.

Referenced by build_dag_object(), and requiredDataMask().

#define CD_MASK_MDISPS   (1 << CD_MDISPS)
#define CD_MASK_MEDGE   (1 << CD_MEDGE)

Definition at line 126 of file DNA_customdata_types.h.

Referenced by requiredDataMask().

#define CD_MASK_MFACE   (1 << CD_MFACE)

Definition at line 127 of file DNA_customdata_types.h.

#define CD_MASK_MLOOP   (1 << CD_MLOOP)

Definition at line 151 of file DNA_customdata_types.h.

#define CD_MASK_MLOOPCOL   (1 << CD_MLOOPCOL)

Definition at line 140 of file DNA_customdata_types.h.

#define CD_MASK_MLOOPUV   (1 << CD_MLOOPUV)

Definition at line 139 of file DNA_customdata_types.h.

#define CD_MASK_MPOLY   (1 << CD_MPOLY)

Definition at line 150 of file DNA_customdata_types.h.

#define CD_MASK_MSTICKY   (1 << CD_MSTICKY)

Definition at line 124 of file DNA_customdata_types.h.

#define CD_MASK_MTEXPOLY   (1 << CD_MTEXPOLY)

Definition at line 138 of file DNA_customdata_types.h.

#define CD_MASK_MTFACE   (1 << CD_MTFACE)
#define CD_MASK_MVERT   (1 << CD_MVERT)

Definition at line 123 of file DNA_customdata_types.h.

Referenced by requiredDataMask().

#define CD_MASK_NORMAL   (1 << CD_NORMAL)

Definition at line 131 of file DNA_customdata_types.h.

#define CD_MASK_ORCO   (1 << CD_ORCO)
#define CD_MASK_ORIGINDEX   (1 << CD_ORIGINDEX)
#define CD_MASK_ORIGSPACE   (1 << CD_ORIGSPACE)
#define CD_MASK_POLYINDEX   (1 << CD_POLYINDEX)

Definition at line 132 of file DNA_customdata_types.h.

#define CD_MASK_PROP_FLT   (1 << CD_PROP_FLT)

Definition at line 133 of file DNA_customdata_types.h.

#define CD_MASK_PROP_INT   (1 << CD_PROP_INT)

Definition at line 134 of file DNA_customdata_types.h.

#define CD_MASK_PROP_STR   (1 << CD_PROP_STR)

Definition at line 135 of file DNA_customdata_types.h.

#define CD_MASK_RECAST   (1 << CD_RECAST)

Definition at line 145 of file DNA_customdata_types.h.

#define CD_MASK_SHAPE_KEYINDEX   (1 << CD_SHAPE_KEYINDEX)

Definition at line 152 of file DNA_customdata_types.h.

#define CD_MASK_SHAPEKEY   (1 << CD_SHAPEKEY)

Definition at line 153 of file DNA_customdata_types.h.

#define CD_MASK_TANGENT   (1 << CD_TANGENT)

Definition at line 141 of file DNA_customdata_types.h.

#define CD_MASK_WEIGHT_MCOL   (1 << CD_WEIGHT_MCOL)

Definition at line 143 of file DNA_customdata_types.h.

Referenced by ED_view3d_object_datamask(), and mesh_calc_modifiers().

#define CD_MASK_WEIGHT_MLOOPCOL   (1 << CD_WEIGHT_MLOOPCOL)

Definition at line 156 of file DNA_customdata_types.h.

#define CD_MCOL   6
#define CD_MDEFORMVERT   2
#define CD_MDISPS   19
#define CD_MEDGE   3
#define CD_MFACE   4
#define CD_MLOOP   26

Definition at line 106 of file DNA_customdata_types.h.

#define CD_MLOOPCOL   17
#define CD_MLOOPUV   16
#define CD_MPOLY   25

Definition at line 105 of file DNA_customdata_types.h.

#define CD_MSTICKY   1
#define CD_MTEXPOLY   15
#define CD_MTFACE   5

Definition at line 81 of file DNA_customdata_types.h.

Referenced by InstanceWriter::add_material_bindings(), add_tface_color_layer(), alphasort_version_246(), append_weldedUV(), append_weldedUVEdge(), apply_heights_callback(), apply_tangmat_callback(), MeshImporter::assign_material_to_geom(), MeshImporter::assign_textures_to_uvlayer(), BL_ConvertMesh(), BME_corners_to_loops(), BME_DMcorners_to_loops(), BME_DMloops_to_corners(), BME_loops_to_corners(), border_select_exec(), ccgDM_drawFacesTex_common(), ccgDM_drawUVEdges(), cdDM_drawFacesTex_common(), cdDM_drawUVEdges(), circle_select_exec(), collapseuvs(), compareFaceAttribs(), construct_param_handle(), convert_tfacematerial(), copy_mesh(), correct_uv_aspect(), count_images(), GeometryExporter::createPolylist(), createSlideVerts(), GeometryExporter::createTexcoordsSource(), createTransUVs(), cube_project_exec(), CustomData_from_bmeshpoly(), CustomData_to_bmeshpoly(), customdata_version_242(), cutEdges(), cylinder_project_exec(), DM_add_tangent_layer(), DM_calc_auto_bump_scale(), DM_vertex_attributes_from_gpu(), do_material_tex(), do_multires_bake(), do_version_tface(), doMirrorOnAxis(), draw_em_tf_mapped__set_draw(), draw_mesh_text(), draw_mesh_textured_old(), draw_uvs(), draw_uvs_dm_shadow(), draw_uvs_shadow(), draw_uvs_stretch(), dynamicPaint_createUVSurface(), dynamicPaint_findNeighbourPixel(), dynamicPaint_setInitialColor(), ED_mesh_uv_texture_add(), ED_mesh_uv_texture_remove(), ED_uvedit_assign_image(), ED_uvedit_ensure_uvs(), ED_uvedit_median(), ED_uvedit_minmax(), ED_uvedit_nearest_uv(), editmesh_mark_seam(), EM_get_active_mtface(), EM_make_uv_vert_map(), EM_mesh_copy_face(), EM_mesh_copy_face_layer(), EM_texFaceCheck(), emDM_drawFacesTex_common(), emDM_drawUVEdges(), emDM_getFaceDataArray(), expand_local_mesh(), expand_mesh(), explodeMesh(), find_nearest_uv_edge(), find_nearest_uv_face(), find_nearest_uv_vert(), get_particle_uv(), get_particle_uvco_mcol(), get_texture_coords(), getActiveUVLayerName(), getCCGDerivedMesh(), GPU_buffer_copy_uv(), GPU_buffer_copy_uvedge(), gpu_buffer_setup_type(), GPU_shader_export(), gpu_shader_geom(), hide_exec(), imapaint_pick_uv(), init_render_dm(), init_render_mesh(), lib_link_customdata_mtface(), make_local_image(), make_mesh_edge_lookup(), merge_firstlast(), merge_target(), mesh_mirror_uvs(), mesh_rotate_uvs(), mesh_update_customdata_pointers(), mouse_mesh_shortest_path(), mouse_select(), multiresbake_startjob(), node_shader_gpu_tex_coord(), node_shader_gpu_tex_image(), GeometryExporter::operator()(), pin_exec(), project_paint_begin(), psys_get_dupli_texture(), psys_particle_on_dm(), PyInit_gpu(), RE_inithalo_particle(), RE_sample_material_color(), RE_set_customdata_names(), remap_uvs_15(), remap_uvs_19_21_22(), remap_uvs_23(), remap_uvs_3_6_9_12(), remap_uvs_5_10(), remap_uvs_7_11_13_14(), render_new_particle_system(), requiredDataMask(), reset_exec(), reveal_exec(), select_all_perform(), select_edgeloop(), select_linked(), select_pinned_exec(), set_subsurf_uv(), BL_BlenderShader::SetAttribs(), CcdShapeConstructionInfo::SetMesh(), similar_face_select__internal(), snap_uvs_to_adjacent_unselected(), snap_uvs_to_cursor(), snap_uvs_to_pixels(), sphere_project_exec(), stitch_exec(), tex_mat_set_texture_cb(), texture_paint_toggle_exec(), unlink_selection_exec(), CcdShapeConstructionInfo::UpdateMesh(), use_mesh_edge_lookup(), uv_faces_do_sticky(), uv_from_view_exec(), uv_map_clip_correct(), uvedit_center(), uvedit_have_selection(), uvedit_set_tile(), uvedit_translate(), uvprojectModifier_do(), and weld_align_uv().

#define CD_MVERT   0
#define CD_NORMAL   8
#define CD_NUMTYPES   32
#define CD_ORCO   14
#define CD_ORIGINDEX   7
#define CD_ORIGSPACE   13
#define CD_POLYINDEX   9

Definition at line 85 of file DNA_customdata_types.h.

#define CD_PROP_FLT   10

Definition at line 86 of file DNA_customdata_types.h.

Referenced by CustomData_is_property_layer().

#define CD_PROP_INT   11

Definition at line 87 of file DNA_customdata_types.h.

Referenced by CustomData_is_property_layer().

#define CD_PROP_STR   12

Definition at line 88 of file DNA_customdata_types.h.

Referenced by CustomData_is_property_layer().

#define CD_RECAST   24
#define CD_SHAPE_KEYINDEX   27

Definition at line 107 of file DNA_customdata_types.h.

#define CD_SHAPEKEY   28

Definition at line 108 of file DNA_customdata_types.h.

#define CD_TANGENT   18
#define CD_TEXTURE_MCOL   22
#define CD_WEIGHT_MCOL   20
#define CD_WEIGHT_MLOOPCOL   31

Definition at line 111 of file DNA_customdata_types.h.

#define MAX_CUSTOMDATA_LAYER_NAME   64
#define MAX_MCOL   8
#define MAX_MTFACE   8

Typedef Documentation

typedef struct CustomData CustomData

structure which stores custom element data associated with mesh elements (vertices, edges or faces). The custom data is organised into a series of layers, each with a data type (e.g. MTFace, MDeformVert, etc.).

descriptor and storage for a custom data layer