Blender V2.61 - r43446
Functions

mesh_data.c File Reference

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_material_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_view3d_types.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_edgehash.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_displist.h"
#include "BKE_image.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mesh.h"
#include "BKE_report.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_uvedit.h"
#include "ED_view3d.h"
#include "RE_render_ext.h"
#include "mesh_intern.h"

Go to the source code of this file.

Functions

static void delete_customdata_layer (bContext *C, Object *ob, CustomDataLayer *layer)
static void copy_editface_active_customdata (EditMesh *em, int type, int index)
int ED_mesh_uv_texture_add (bContext *C, Mesh *me, const char *name, int active_set)
int ED_mesh_uv_texture_remove (bContext *C, Object *ob, Mesh *me)
int ED_mesh_color_add (bContext *C, Scene *UNUSED(scene), Object *UNUSED(ob), Mesh *me, const char *name, int active_set)
int ED_mesh_color_remove (bContext *C, Object *ob, Mesh *me)
int ED_mesh_color_remove_named (bContext *C, Object *ob, Mesh *me, const char *name)
static int layers_poll (bContext *C)
static int uv_texture_add_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_uv_texture_add (wmOperatorType *ot)
static int drop_named_image_invoke (bContext *C, wmOperator *op, wmEvent *event)
void MESH_OT_drop_named_image (wmOperatorType *ot)
static int uv_texture_remove_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_uv_texture_remove (wmOperatorType *ot)
static int vertex_color_add_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_vertex_color_add (wmOperatorType *ot)
static int vertex_color_remove_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_vertex_color_remove (wmOperatorType *ot)
static int sticky_add_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_sticky_add (wmOperatorType *ot)
static int sticky_remove_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_sticky_remove (wmOperatorType *ot)
void ED_mesh_update (Mesh *mesh, bContext *C, int calc_edges)
static void mesh_add_verts (Mesh *mesh, int len)
void ED_mesh_transform (Mesh *me, float *mat)
static void mesh_add_edges (Mesh *mesh, int len)
static void mesh_add_faces (Mesh *mesh, int len)
void ED_mesh_faces_add (Mesh *mesh, ReportList *reports, int count)
void ED_mesh_edges_add (Mesh *mesh, ReportList *reports, int count)
void ED_mesh_vertices_add (Mesh *mesh, ReportList *reports, int count)
void ED_mesh_calc_normals (Mesh *me)

Detailed Description

Definition in file mesh_data.c.


Function Documentation

static void copy_editface_active_customdata ( EditMesh em,
int  type,
int  index 
) [static]
static void delete_customdata_layer ( bContext C,
Object ob,
CustomDataLayer layer 
) [static]
static int drop_named_image_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
void ED_mesh_calc_normals ( Mesh me)

Definition at line 745 of file mesh_data.c.

References mesh_calc_normals(), Mesh::mface, Mesh::mvert, NULL, Mesh::totface, and Mesh::totvert.

int ED_mesh_color_add ( bContext C,
Scene UNUSEDscene,
Object UNUSEDob,
Mesh me,
const char *  name,
int  active_set 
)
int ED_mesh_color_remove ( bContext C,
Object ob,
Mesh me 
)
int ED_mesh_color_remove_named ( bContext C,
Object ob,
Mesh me,
const char *  name 
)
void ED_mesh_edges_add ( Mesh mesh,
ReportList reports,
int  count 
)

Definition at line 725 of file mesh_data.c.

References BKE_report(), Mesh::edit_mesh, mesh_add_edges(), and RPT_ERROR.

void ED_mesh_faces_add ( Mesh mesh,
ReportList reports,
int  count 
)

Definition at line 715 of file mesh_data.c.

References BKE_report(), Mesh::edit_mesh, mesh_add_faces(), and RPT_ERROR.

void ED_mesh_transform ( Mesh me,
float *  mat 
)
void ED_mesh_update ( Mesh mesh,
bContext C,
int  calc_edges 
)
int ED_mesh_uv_texture_add ( bContext C,
Mesh me,
const char *  name,
int  active_set 
)
int ED_mesh_uv_texture_remove ( bContext C,
Object ob,
Mesh me 
)
void ED_mesh_vertices_add ( Mesh mesh,
ReportList reports,
int  count 
)

Definition at line 735 of file mesh_data.c.

References BKE_report(), Mesh::edit_mesh, mesh_add_verts(), and RPT_ERROR.

static int layers_poll ( bContext C) [static]
static void mesh_add_edges ( Mesh mesh,
int  len 
) [static]
static void mesh_add_faces ( Mesh mesh,
int  len 
) [static]
static void mesh_add_verts ( Mesh mesh,
int  len 
) [static]
void MESH_OT_drop_named_image ( wmOperatorType ot)
void MESH_OT_sticky_add ( wmOperatorType ot)
void MESH_OT_sticky_remove ( wmOperatorType ot)
void MESH_OT_uv_texture_add ( wmOperatorType ot)
void MESH_OT_uv_texture_remove ( wmOperatorType ot)
void MESH_OT_vertex_color_add ( wmOperatorType ot)
void MESH_OT_vertex_color_remove ( wmOperatorType ot)
static int sticky_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int sticky_remove_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int uv_texture_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int uv_texture_remove_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int vertex_color_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int vertex_color_remove_exec ( bContext C,
wmOperator UNUSEDop 
) [static]